Skip to content

Fix type annotations and bump mypy python_version for mypy 2.0#494

Closed
quiqueporta wants to merge 1 commit intoarthurdejong:masterfrom
quiqueporta:fix-mypy-2.0-compatibility
Closed

Fix type annotations and bump mypy python_version for mypy 2.0#494
quiqueporta wants to merge 1 commit intoarthurdejong:masterfrom
quiqueporta:fix-mypy-2.0-compatibility

Conversation

@quiqueporta
Copy link
Copy Markdown
Contributor

mypy 2.0 dropped support for python_version = 3.9 in the [mypy] config and flagged two empty-dict definitions as missing annotations, which currently breaks the tox -e mypy CI job on any new commit.

  • Bump python_version in setup.cfg from 3.9 to 3.10.
  • Annotate _soap_clients in stdnum/util.py.
  • Annotate _country_modules in stdnum/eu/vat.py, which also resolves the no-any-return warning in _get_cc_module.

mypy 2.0 dropped support for python_version 3.9 in [mypy] config and
flagged two empty-dict definitions as missing annotations, which broke
the tox -e mypy CI job for any new commit.

* Bump python_version in setup.cfg from 3.9 to 3.10.
* Annotate _soap_clients in stdnum/util.py.
* Annotate _country_modules in stdnum/eu/vat.py, which also resolves
  the no-any-return warning in _get_cc_module.
@quiqueporta quiqueporta closed this May 7, 2026
@quiqueporta quiqueporta deleted the fix-mypy-2.0-compatibility branch May 7, 2026 08:41
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