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

Handle collections.abc.Callable as well as typing.Callable #289

Merged
merged 7 commits into from
Jan 14, 2023

Conversation

hoodmane
Copy link
Collaborator

typing.Callable is deprecated in favor of collections.abc.Callable since Python 3.9:
https://docs.python.org/3/library/typing.html?highlight=typing%20callable#typing.Callable

This fixes the rendering to look correct regardless of which Callable annotation you use.

@gaborbernat gaborbernat merged commit abc497f into tox-dev:main Jan 14, 2023
@hoodmane hoodmane deleted the collections.abc.Callable branch January 14, 2023 23:48
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.

2 participants