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

Require typing-extensions on py<3.8 only #269

Merged
merged 1 commit into from Jan 17, 2022

Conversation

mgorny
Copy link
Contributor

@mgorny mgorny commented Jan 17, 2022

typing.Literal is available since Python 3.8. Use it instead of
requiring typing-extensions for systems that no longer have Python 3.7.

typing.Literal is available since Python 3.8.  Use it instead of
requiring typing-extensions for systems that no longer have Python 3.7.
@@ -24,7 +25,11 @@
)

import pytest
from typing_extensions import Literal

if sys.version_info >= (3, 8):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can change this to use sys.hexversion or ImportError approach if you prefer.

@asvetlov asvetlov merged commit 547933d into pytest-dev:master Jan 17, 2022
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.

None yet

3 participants