Open etam opened 6 years ago
following
They have fixed this in the issue you are reference, have you applied updates to enforce?
Same here:
pip install git+https://github.com/RussBaz/enforce.git@dev
pip freeze | grep enforce
enforce==0.3.5
python --version
Python 3.7.0
future: <Task finished coro=<RabbitMQ._process_message() done, defined at /../rabbitmq.py:71> exception=AttributeError("module 'typing' has no attribute 'TupleMeta'")>
NoneType: None
Hey,
is there any plan to make this 3.7 compatible?
thanks :)
Well, I have a patch ready that will make it run on 3.7 but it will faill the tests as the structure of python typing internals is quuite different now from how it used to be. The most realistic approach is to rewrite without caring for earlier versions of python. At the moment, making it work on all versions is a serious pain.
I will release the patch some time later this month but I cannot guarantee that I will be able to make it work with 3.7+ any time soon without help.
The sheer number of corner cases which I did not know about when I wrote the first script has made the current codebase quite freightening. Without a huge number of tests it would have been impossibe.
@RussBaz
Hi! Any updates on the issue?
@d33tah might be worth looking into typeguard while the fix is in the works
I just started working on a new fork: https://github.com/SamuelMarks/enforce
Early days, but open to collaborators
(just worked on minor fixes, black, and replacing CI with GitHub Actions thus far)
[also can offer this back if @RussBaz wants]
any update on this?
any update on this?
python/cpython@d911e40e788fb679723d78b6ea11cabf46caed5a made some
Lib/typing.py
internal refactoring