-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
fix: Parse deprecation message from expression arguments #5
fix: Parse deprecation message from expression arguments #5
Conversation
@pawamoy Not sure how to fix the typing issue, as the |
I'm far from a typing expert so I'll simply recommend adding a |
I think the bigger question is whether the |
No! Decorators can be arbitrary expressions since a few Python versions: @(lambda func: some_wrapper(func, some_arg=0))
def my_func(): ... Even before that they could have been a single name, or an attribute (no calls): @dec
def func(): ...
@obj.dec
def func(): ... |
I've added a check for whether |
Co-authored-by: Timothée Mazzucotelli <[email protected]>
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 again!
Thank you! You are doing great work with these packages 👍 |
No apologies required |
Version 1.1.0 released by the way! |
Update the
deprecated
method to parse the deprecation message from the expression arguments instead of relying on string parsing.Fixes #4