8000 Explicilty define exported exceptions · cedk/python-stdnum@dcdb5c9 · GitHub
[go: up one dir, main page]

Skip to content

Commit dcdb5c9

Browse files
DimitriPapadopoulosarthurdejong
authored andcommitted
Explicilty define exported exceptions
LGTM alert: Import pollutes the enclosing namespace See: https://lgtm.com/rules/3980091/ Closes arthurdejong#270
1 parent abda037 commit dcdb5c9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

stdnum/exceptions.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
"""
2626

2727

28+
__all__ = ['ValidationError', 'InvalidFormat', 'InvalidChecksum',
29+
'InvalidLength', 'InvalidComponent']
30+
31+
2832
class ValidationError(Exception):
2933
"""Top-level error for validating numbers.
3034

0 commit comments

Comments
 (0)
0