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
enum
Matching Python 3 Enum classes always fails.
Enum
This can be fixed by adding support for Enum at:
pampy/pampy/pampy.py
Line 31 in 7099500
To:
from enum import Enum # ... elif isinstance(pattern, (int, float, str, bool, Enum)):
Built-in equality checks for enum types will work the same as other scalar values.
However, this will break Python 2.x compatibility, where no Enum type is available.
The text was updated successfully, but these errors were encountered:
Thanks Harry!
Sorry, something went wrong.
No branches or pull requests
Matching Python 3
Enum
classes always fails.This can be fixed by adding support for
Enum
at:pampy/pampy/pampy.py
Line 31 in 7099500
To:
Built-in equality checks for enum types will work the same as other scalar values.
However, this will break Python 2.x compatibility, where no
Enum
type is available.The text was updated successfully, but these errors were encountered: