Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in typing with python 3.5.2 #30

Closed
tkaraouzene opened this issue Jul 30, 2019 · 1 comment
Closed

Bug in typing with python 3.5.2 #30

tkaraouzene opened this issue Jul 30, 2019 · 1 comment

Comments

@tkaraouzene
Copy link

tkaraouzene commented Jul 30, 2019

from valid8 import validate

yields

  File "C:\Users\SESA494757\Software\Anaconda3\envs\clientenv\lib\site-packages\valid8\__init__.py", line 4, in <module>
    from valid8.composition import CompositionFailure, AtLeastOneFailed, and_, DidNotFail, not_, AllValidatorsFailed, or_, \
  File "C:\Users\SESA494757\Software\Anaconda3\envs\clientenv\lib\site-packages\valid8\composition.py", line 23, in <module>
    CallableAndFailureTuple = Tuple[CallableType, Union[str, 'Type[Failure]']]
  File "C:\Users\SESA494757\Software\Anaconda3\envs\clientenv\lib\typing.py", line 552, in __getitem__
    dict(self.__dict__), parameters, _root=True)
@smarie smarie closed this as completed in 9a04691 Jul 30, 2019
@tkaraouzene
Copy link
Author

import valid8.composition

yields

File "C:\Users\SESA494757\Software\Anaconda3\envs\clientenv\lib\site-packages\IPython\core\interactiveshell.py", line 2961, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "<ipython-input-10-6f58319e1d15>", line 1, in <module> import valid8 File "C:\Program Files\JetBrains\PyCharm Community Edition 2019.1.3\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import module = self._system_import(name, *args, **kwargs) File "C:\Users\SESA494757\Software\Anaconda3\envs\clientenv\lib\site-packages\valid8\__init__.py", line 4, in <module> from valid8.composition import CompositionFailure, AtLeastOneFailed, and_, DidNotFail, not_, AllValidatorsFailed, or_, \ File "C:\Program Files\JetBrains\PyCharm Community Edition 2019.1.3\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import module = self._system_import(name, *args, **kwargs) File "C:\Users\SESA494757\Software\Anaconda3\envs\clientenv\lib\site-packages\valid8\composition.py", line 438, in <module> @with_signature(new_sig) File "C:\Users\SESA494757\Software\Anaconda3\envs\clientenv\lib\site-packages\makefun\main.py", line 794, in replace_f **attrs File "C:\Users\SESA494757\Software\Anaconda3\envs\clientenv\lib\site-packages\makefun\main.py", line 166, in create_function func_name_from_str, func_signature, func_signature_str = get_signature_from_string(func_signature, evaldict) File "C:\Users\SESA494757\Software\Anaconda3\envs\clientenv\lib\site-packages\makefun\main.py", line 402, in get_signature_from_string dummy_f = _make(func_name_, [], body, evaldict) File "C:\Users\SESA494757\Software\Anaconda3\envs\clientenv\lib\site-packages\makefun\main.py", line 574, in _make exec(code, evaldict) File "<makefun-gen-7>", line 2, in <module> NameError: name 'ValidationFuncs' is not defined

@smarie smarie reopened this Jul 31, 2019
@smarie smarie closed this as completed in 3821e1e Jul 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants