python-stdnum branch master updated. 2.2-2-gb99cfad
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
python-stdnum branch master updated. 2.2-2-gb99cfad
- From: Commits of the python-stdnum project <python-stdnum-commits [at] lists.arthurdejong.org>
- To: python-stdnum-commits [at] lists.arthurdejong.org
- Reply-to: python-stdnum-users [at] lists.arthurdejong.org, python-stdnum-commits [at] lists.arthurdejong.org
- Subject: python-stdnum branch master updated. 2.2-2-gb99cfad
- Date: Sun, 5 Jul 2026 13:55:29 +0200 (CEST)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "python-stdnum".
The branch, master has been updated
via b99cfad6677df84697787abec12cea4ccfad04e3 (commit)
from 5d4ad17cae8abeab21f446b5569f85d185566330 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://arthurdejong.org/git/python-stdnum/commit/?id=b99cfad6677df84697787abec12cea4ccfad04e3
commit b99cfad6677df84697787abec12cea4ccfad04e3
Author: Arthur de Jong <arthur@arthurdejong.org>
Date: Sun Jul 5 13:54:04 2026 +0200
Fix mypy tests
This adds a few missing type definitions and caps mypy to a version that
still supports Python 3.9.
diff --git a/stdnum/eu/vat.py b/stdnum/eu/vat.py
index 6c2e5a2..e0feff3 100644
--- a/stdnum/eu/vat.py
+++ b/stdnum/eu/vat.py
@@ -1,7 +1,7 @@
# vat.py - functions for handling European VAT numbers
# coding: utf-8
#
-# Copyright (C) 2012-2024 Arthur de Jong
+# Copyright (C) 2012-2026 Arthur de Jong
# Copyright (C) 2015 Lionel Elie Mamane
#
# This library is free software; you can redistribute it and/or
@@ -56,7 +56,7 @@ MEMBER_STATES = set([
country code of gr while for VAT purposes el is used instead. For Northern
Ireland numbers are prefixed with xi of United Kingdom numbers."""
-_country_modules = dict()
+_country_modules: dict[str, NumberValidationModule | None] = dict()
vies_wsdl = 'https://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl'
"""The WSDL URL of the VAT Information Exchange System (VIES)."""
diff --git a/stdnum/util.py b/stdnum/util.py
index bd5d105..ca02b3b 100644
--- a/stdnum/util.py
+++ b/stdnum/util.py
@@ -1,7 +1,7 @@
# util.py - common utility functions
# coding: utf-8
#
-# Copyright (C) 2012-2025 Arthur de Jong
+# Copyright (C) 2012-2026 Arthur de Jong
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
@@ -256,7 +256,7 @@ def get_cc_module(cc: str, name: str) ->
NumberValidationModule | None:
# this is a cache of SOAP clients
-_soap_clients = {}
+_soap_clients: dict[tuple[str, float, bool | str], Any] = {}
def _get_zeep_soap_client(
diff --git a/tox.ini b/tox.ini
index e7f366a..6d45d9a 100644
--- a/tox.ini
+++ b/tox.ini
@@ -32,7 +32,7 @@ setenv=
[testenv:mypy]
skip_install = true
-deps = mypy
+deps = mypy<2.0 # required to keep Python 3.9 support
types-requests
zeep
commands =
-----------------------------------------------------------------------
Summary of changes:
stdnum/eu/vat.py | 4 ++--
stdnum/util.py | 4 ++--
tox.ini | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
hooks/post-receive
--
python-stdnum
- python-stdnum branch master updated. 2.2-2-gb99cfad,
Commits of the python-stdnum project