Skip to content
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 issue #462 and another alias processing bug #463

Merged
merged 11 commits into from
Jun 21, 2024

Conversation

tikuma-lsuhsc
Copy link
Contributor

This PR fixes the bugs introduced in v2.2:

The new alias look up mechanism follows closely as done in sphinx.util.inspect.signature()

@tikuma-lsuhsc tikuma-lsuhsc changed the title Fix issue 462 and another alias processing bug Fix issue #462 and another alias processing bug Jun 21, 2024
Comment on lines +197 to +198
if isinstance(annotation, TypeAliasForwardRef):
return str(annotation)
Copy link
Collaborator

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.

Copy link
Contributor Author

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?

Copy link
Contributor Author

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

Copy link
Collaborator

@hoodmane hoodmane left a 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.

hoodmane
hoodmane previously approved these changes Jun 21, 2024
Copy link
Collaborator

@hoodmane hoodmane left a 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.

@gaborbernat gaborbernat enabled auto-merge (squash) June 21, 2024 14:31
@hoodmane
Copy link
Collaborator

Thanks @tikuma-lsuhsc!

@gaborbernat gaborbernat merged commit 0435d07 into tox-dev:main Jun 21, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants