Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2018-02-19 21:30:25 +0100
committerArthur de Jong <arthur@arthurdejong.org>2018-02-19 21:30:25 +0100
commit81947a26fffab3075b51a15f63844b9f89ef318e (patch)
treebb70d0ada0645a8952dd8a0c501a623401f00455
parent5cbba25f9267c37450a04b72bc0f2f1e7ae8e37a (diff)
Improve get_cc_module() documentation
-rw-r--r--docs/index.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/index.rst b/docs/index.rst
index aa769d1..732be93 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -65,8 +65,11 @@ Helper functions and modules
particular country. `name` may be an aliased name. For example:
>>> from stdnum import get_cc_module
- >>> get_cc_module('nl', 'vat')
+ >>> mod = get_cc_module('nl', 'vat')
+ >>> mod
<module 'stdnum.nl.btw' from '...'>
+ >>> mod.validate('004495445B01')
+ '004495445B01'
Will return ``None`` if no module could be found. The generic names that
are currently in use: