Repository navigation
Release 1.21.0 #654
AngusHsu
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Validity changes
SocialInsuranceNumber.validate()rejectsprefixes 0 and 8 under the standard SIN rules, excluding the CESP-specific exception for primary-caregiver SINs
beginning with 0.
checksum()remains an arithmetic-only Luhn check.Added
LUX.EntityTIN, the 11-digitnational identifier that is used as a TIN-like number for non-natural persons, with the weighted mod 11 check digit
from the OECD Luxembourg TIN sheet; numbers whose remainder is 1 are rejected because it is never allocated.
LUX.TINgroups
individual(LUX.NationalID) andentity(LUX.EntityTIN).LUX.NationalIDis unchanged.DEU.TaxNumber(aliasDEU.Steuernummer), the Steuernummer in the 13-digit ELSTER format. It checks the state number, the district rulesand the state-specific check digit (11er-Verfahren, 2er-Verfahren or the modified 11er-Verfahren of
Rhineland-Palatinate, with the Berlin-A and Berlin-B weights) from the ELSTER document "Prüfung der Steuer- und
Steueridentifikationsnummer", and
parse()returns the state, tax office, district and distinguishing number. Theformat printed on tax notices is not accepted.
DEU.NationalIDis unchanged.Other fixes
apidocworkflow queues itsdeploys in a concurrency group (
apidoc-devfor pushes tomain,apidoc-<version>for a release) and rebases andretries a rejected
gh-pagespush, so back-to-back pushes tomainno longer fail the docs deploy and a push tomainnever cancels a release's docs deploy.INSEE.parse()(andFRA.NationalID.parse()) returnsNonefor a number with a wrong control key, whichvalidate()already rejected.Valid numbers parse as before.
NationalID.parse()returnsNonefor a numberwith wrong check digits, which
validate()already rejected.validate()results andidnumbers.parse_id_info()are unchanged.
at port commit
782680d, which adds CRI, DOM, ECU, EGY, GTM, RUS and SAU (85 countries, 20,672 vectors), and recordPython's validity for them, so a validity change in those seven countries now fails
tests/parity/test_corpus.py.Python's recorded validity for the other 78 countries is unchanged.
This discussion was created from the release Release 1.21.0.
All reactions