Skip to content

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

Open
p-vdp wants to merge 12 commits into
python:mainfrom
p-vdp:geojson-fix
Open

[geojson] Change geometry.DEFAULT_PRECISION type from Literal[6] to SupportsIndex#16336
p-vdp wants to merge 12 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. DEFAULT_PRECISION is passed to round(coord, precision) so this uses the same type as the ndigits parameter of builtins.round.

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

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

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.

1 participant