File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 99 rm -rf dist build argreq.egg-info
1010upload :
1111 twine upload dist/*
12+ test :
13+ pytest
1214rst :
1315 m2r --overwrite README.md
Original file line number Diff line number Diff line change 66
77import argreq .errors
88
9- __VERSION__ = '0.1.0 '
9+ __VERSION__ = '0.1.1 '
1010
1111
1212def _find_argument (
@@ -35,7 +35,7 @@ def check(_req):
3535 else :
3636 req_with_arg = f'value{ _req } '
3737 if not eval (req_with_arg ):
38- raise NotValidArgumentError (value , _req )
38+ raise argreq . errors . NotValidArgumentError (value , _req )
3939 if builtins .type (req ) is tuple :
4040 for _req in req :
4141 check (_req )
Original file line number Diff line number Diff line change 1- from argreq import argument , NotValidArgumentError
1+ from argreq import argument
2+ from argreq .errors import NotValidArgumentError
23import functools
34import pytest
45
56def return_true (func ):
6- functools .wraps (func )
7+ @ functools .wraps (func )
78 def wrapper (* args , ** kwargs ):
89 res = func (* args , ** kwargs )
910 if res is None :
You can’t perform that action at this time.
0 commit comments