-
-
Notifications
You must be signed in to change notification settings - Fork 107
Tuple[] internals changes in Python 3.6 #11
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
Comments
The same goes for |
The whole function needs some rework for Python 3.6. Union is also no longer a class (see python/typing#380). I've started creating unit test for the project on my fork. So that we can know what works and what not beyond trial and error. |
I know all this, and I've fixed the same problem in my other project, typeguard. I am in the process of fixing the code, assisted by the test suite written by @wheerd. But it will take some time because I've been swamped with my commercial work for a while. I'm hoping things will calm down in the coming couple weeks. |
Does anyone know if there are better reflection APIs coming to |
@miohtama It seems likely that reflection is going to improve. For example, have a look at python/typing#377. |
Should be fixed by 712d432. |
Python 3.6 TupleMeta no longer has
__tuple_args__
. Hitting a Tuple annotation when runningsphinx-build
causes exception.Instead one can extra arguments from Tuple like:
However, I did not yet figure out how to handle the ellipsis case, as internals of typing.py are pretty mindblowing.
The text was updated successfully, but these errors were encountered: