We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm attempting to use enforce over a class. However, one of the methods in this class is static, and marked so by:
enforce
@staticmethod
When attempting to run, i get the following:
In [7]: Keyboard._parse_modifier(2) --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-7-2977a0e8d3a6> in <module>() ----> 1 Keyboard._parse_modifier(2) ~/.virtualenvs/usb_pcap/lib/python3.5/site-packages/enforce/decorators.py in universal(wrapped, instance, args, kwargs) 83 """ 84 with RunLock: ---> 85 enforcer = wrapped.__enforcer__ 86 skip = False 87 AttributeError: 'functools.partial' object has no attribute '__enforcer__'
Same error occurs if i remove my type hints.
The text was updated successfully, but these errors were encountered:
Added test for RussBaz#55 staticmethods
64b990b
Fixed RussBaz#55
46cf0de
Merge pull request #56 from TheDataLeek/willfarmer-staticmethods
3743514
Fix for #55 Staticmethods
@RussBaz, please publish new version on pypi.
Sorry, something went wrong.
No branches or pull requests
I'm attempting to use
enforce
over a class. However, one of the methods in this class is static, and marked so by:@staticmethod
When attempting to run, i get the following:
Same error occurs if i remove my type hints.
The text was updated successfully, but these errors were encountered: