Python 3.8.5 (default, Jul 28 2020, 12:59:40)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import stdnum
>>> stdnum.__version__
'1.14'
>>> from stdnum.vatin import is_valid
>>> is_valid('CHE-109.298.651 TVA')
False
>>> from stdnum.ch.vat import is_valid
>>> is_valid('CHE-109.298.651 TVA')
True
The description of vatin says "This module supports all VAT numbers that are supported in python-stdnum."
cf https://github.com/arthurdejong/python-stdnum/blob/master/stdnum/vatin.py#L27
So either the description of vatin should be updated to say that it excludes Switzerland, or it should be able to validate swiss VAT numbers.
It seems to me that this is a bug:
The description of vatin says "This module supports all VAT numbers that are supported in python-stdnum." cf https://github.com/arthurdejong/python-stdnum/blob/master/stdnum/vatin.py#L27 So either the description of vatin should be updated to say that it excludes Switzerland, or it should be able to validate swiss VAT numbers.