-
-
Notifications
You must be signed in to change notification settings - Fork 107
Fix issue #462 and another alias processing bug #463
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
Fix processing type aliases
for more information, see https://pre-commit.ci
if isinstance(annotation, TypeAliasForwardRef): | ||
return str(annotation) |
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.
Should we check whether we can make an xref here? Perhaps in a followup.
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.
sorry, I'm not following. Could you elaborate?
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.
wait I messed up the review process. I didn't mean to dismiss your review. my bad
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.
Looks good to me if CI passes.
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.
Looks good to me if CI passes.
Thanks @tikuma-lsuhsc! |
This PR fixes the bugs introduced in v2.2:
The new alias look up mechanism follows closely as done in
sphinx.util.inspect.signature()