- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Use of typing module introduced in python 3.5 #4725
Comments
OMG.... I thought the |
The doc for In any case, there is still the issue that the typing module itself was not present in 3.4. Is sphinx dropping 3.4 support? |
Sphinx depends on |
|
For what its worth, I observed this problem on a system that says it has python 1.5.1, and I definitely did not install a prerelease. Furthermore, if you look at the online docs for the typing module the I just created conda environment for python 1.5.1 on Mac OSX and sure enough there is no So you should use the backports package when <= 3.5.1 |
Sorry for my wrong comment. I had misunderstanding that 3.5.1 final was released on December 6, 2016. typing.TYPE_CHECKING was released at Python 3.5.2, so your opinion is absolutely true. |
The typing PyPI page has the following disclaimer:
So with Python 3.5.1, even with the typing package installed, |
#4725: Sphinx does not work with python 3.5.0 and 3.5.1
Fixed by #4735. |
It appears that starting with sphinx 1.7.1, the code uses the typing module that was introduced in python 3.5. This presumably means the code will no longer work with python 3.4, which is still documented as being the oldest supported version. Furthermore the use of the
TYPE_CHECKING
attribute means that versions prior to python 3.5.3 will not work (which is how I noticed this).For instance, see here
It seems like you should either avoid the typing module entirely, conditionalize the imports somehow or update your documented dependencies to state that you require 3.5.3.
The text was updated successfully, but these errors were encountered: