fix: Parse deprecation message from expression arguments#5
fix: Parse deprecation message from expression arguments#5pawamoy merged 5 commits intomkdocstrings:mainfrom connesy:bugfix-message-cut-after-comma
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]>
|
Thank you! You are doing great work with these packages 👍 |
|
No apologies required |
|
Version 1.1.0 released by the way! |
Update the
deprecatedmethod to parse the deprecation message from the expression arguments instead of relying on string parsing.Fixes #4