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

Have you tested with the new typing.py yet? #30

Closed
gvanrossum opened this issue Oct 28, 2016 · 3 comments
Closed

Have you tested with the new typing.py yet? #30

gvanrossum opened this issue Oct 28, 2016 · 3 comments

Comments

@gvanrossum
Copy link

While Python 3.6 is in beta we're changing the way typing.py represents types. I can't make any promises that it'll stay stable until the 4th beta (after all PEP 484 is still provisional) but I figured I should give you a heads up that we're changing things around. You can follow the fun in our repo: https://github.com/python/typing/

@TheDataLeek
Copy link
Contributor

As of this afternoon (since I finally got around to installing 3.6), enforce does not work with Python 3.6. Attached is stack trace of import error. I'll start digging deeper in the next few days and see what's changed and where the problems lie.

┬─[william@fillory:~]─[04:07:44 PM]
╰─>$ python3.6
Python 3.6.0 (default, Dec 24 2016, 08:03:08) 
[GCC 6.2.1 20160830] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import enforce
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/william/.local/lib/python3.6/site-packages/enforce/__init__.py", line 1, in <module>
    from .decorators import runtime_validation
  File "/home/william/.local/lib/python3.6/site-packages/enforce/decorators.py", line 9, in <module>
    from .enforcers import apply_enforcer, Parameters, GenericProxy
  File "/home/william/.local/lib/python3.6/site-packages/enforce/enforcers.py", line 7, in <module>
    from .types import EnhancedTypeVar, is_type_of_type
  File "/home/william/.local/lib/python3.6/site-packages/enforce/types.py", line 5, in <module>
    from typing import Optional, Union, UnionMeta, Any, TypeVar, Tuple, Generic
ImportError: cannot import name 'UnionMeta'
>>> 

@RussBaz
Copy link
Owner

RussBaz commented Jan 29, 2017

Thank you. The latest version of Enforce.py now also works with Python version 3.6.0.

By the way, is there a single page changelog for the typing module anywhere? It is quite tedious to catch all the API changes through manual testing.

@RussBaz RussBaz closed this as completed Jan 29, 2017
@gvanrossum
Copy link
Author

gvanrossum commented Jan 29, 2017 via email

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

3 participants