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
Matching an instance of a class against it's class works perfectly but i just realied that you cannot match with the class itself:
class Marker: pass match({"my_marker": Marker}, {"my_marker": Marker}, lambda x: print('MATCH'))
I think this should be a valid match right? Looking at the code at
https://github.com/santinic/pampy/blob/master/pampy/pampy.py#L59
seems like here we should add a check based on
inspect.isclass
What do you think?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Matching an instance of a class against it's class works perfectly but i just realied that you cannot match with the class itself:
I think this should be a valid match right? Looking at the code at
https://github.com/santinic/pampy/blob/master/pampy/pampy.py#L59
seems like here we should add a check based on
What do you think?
The text was updated successfully, but these errors were encountered: