import error on typing.Type for python 3.5.0
See original GitHub issueim using django-extensions 2.0.6, OS is windows 7, python 3.5.0, django 1.11.3
an import error occurs after i execute python manage.py shell_plus
pointing me to this line from shells.py & import_subclasses.py :
from typing import ( # NOQA Dict, List, Tuple, Type, Union, )
current workaround is changing that to:
if False: from typing import ( # NOQA Dict, List, Tuple, Type, Union, )
for both shells.py, and import_subclasses.py
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
26.1. typing — Support for type hints — Python 3.5.9 ...
This is useful in helping catch logical errors: ... from typing import Sequence, TypeVar T = TypeVar('T') # Declare type variable def first(l:...
Read more >python - ImportError: No module named 'typing' when trying ...
It is working, and it is telling you quite clearly that the package you are trying to install needs a later version of...
Read more >typing
Typing – Type Hints for Python. This is a backport of the standard library typing module to Python versions older than 3.5. (See...
Read more >Changelog - valid8
Changelog¶. 5.1.2 - Bugfix with custom error formatting¶. Fixed issue: custom help messages in ValidationError using several variables were not rendering to ...
Read more >Python Typing - Type Hints & Annotations - Daniela Lima
Tool to verify type mismatch — catch errors before running your code. $ pip install mypyUsage: $ mypy /../Path/your_file.py.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
decreasing the version scipy to 1.2.1 which can run it!not the python 3.5.1 or typing。
decrease the version of scipy or (defected moudle)to 1.2.1 and uninstall typing. it can works