-
Notifications
You must be signed in to change notification settings - Fork 113
b042: ignore overloaded init, ignore if str+pickle dunder, improve README #531
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
Conversation
…rove README blurb
kurtmckee
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your work on this!
| # ignore overloaded __init__ | ||
| class MyException(Exception): | ||
| @overload | ||
| def __init__(self, x: int): ... | ||
| @overload | ||
| def __init__(self, x: float): ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tested this branch and confirmed that it resolves the false positive I posted in #525.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Kurt!
Co-authored-by: Kurt McKee <[email protected]>
cooperlees
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many thanks @jakkdl for the improvements !
fixes #525
it also silences the error if it detects
__str__and any of the pickle dunders.please have opinions on the README blurb!