New issue
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
Some (may be) bugs I found #2
Comments
class Pet: pass
class Dog(Pet): pass
class Cat(Pet): pass
match(obj,
Dog, 'dog',
Cat, 'cat',
Pet, 'any other pet',
_, 'this is not a pet at all',
) Thank you very much Dinko! |
Fixed (among other things) in v0.1.6 |
I guess 3. bullet point you mentioned is valid, as long as the Classes are in order they are inherited from. For example, if you have class |
Well, congratulation for your first merge ;) |
Hi. Nice small library, tested out a lot of things. I really does match anything. But I found some mistakes or bugs.
None
is matched in_
, but shouldn'tNone
be matched withNone
also? For example:1
or float1.0
withTrue
, shouldn'tmatch
function not match with those values ? Same is for0
or0.0
. I know0
and1
are also booleanFalse
andTrue
, but there are a lot of other false values too.Thank you for your time and time it took you to write this library 👍 👍 👍 .
I also made a pull request to fix some minor mistakes, so your welcome 🦊
The text was updated successfully, but these errors were encountered: