Skip to content

[geojson] Change geometry.DEFAULT_PRECISION type from Literal[6] to int - #16336

Merged
srittau merged 13 commits into
python:mainfrom
p-vdp:geojson-fix
Sep 2, 2026
Merged

[geojson] Change geometry.DEFAULT_PRECISION type from Literal[6] to int#16336
srittau merged 13 commits into
python:mainfrom
p-vdp:geojson-fix

Conversation

@p-vdp

@p-vdp p-vdp commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

The use of Literal was incorrect, changed to DEFAULT_PRECISION: int.

@github-actions

This comment has been minimized.

@srittau srittau left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think using SupportsIndex is the right call here. Just using int should suffice.

@p-vdp p-vdp changed the title [geojson] Change geometry.DEFAULT_PRECISION type from Literal[6] to SupportsIndex [geojson] Change geometry.DEFAULT_PRECISION type from Literal[6] to int Sep 2, 2026
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@srittau
srittau merged commit 1483bca into python:main Sep 2, 2026
74 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants