GithubHelp home page GithubHelp logo

Comments (3)

gvanrossum avatar gvanrossum commented on May 18, 2024 1

from enforce.

TheDataLeek avatar TheDataLeek commented on May 18, 2024

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'
>>> 

from enforce.

RussBaz avatar RussBaz commented on May 18, 2024

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.

from enforce.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.