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

Add py-gte-38 coverage rule on import statements #1348

Merged
merged 2 commits into from Feb 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions setup.cfg
Expand Up @@ -74,3 +74,4 @@ plugins =
[coverage:coverage_conditional_plugin]
rules =
"sys_platform == 'win32'": py-win32
"sys_version_info >= (3, 8)": py-gte-38
2 changes: 1 addition & 1 deletion tests/test_config.py
Expand Up @@ -8,7 +8,7 @@
from pathlib import Path
from unittest.mock import MagicMock

if sys.version_info < (3, 8):
if sys.version_info < (3, 8): # pragma: py-gte-38
from typing_extensions import Literal
else:
from typing import Literal
Expand Down
2 changes: 1 addition & 1 deletion uvicorn/config.py
Expand Up @@ -12,7 +12,7 @@

from uvicorn.logging import TRACE_LOG_LEVEL

if sys.version_info < (3, 8):
if sys.version_info < (3, 8): # pragma: py-gte-38
from typing_extensions import Literal
else:
from typing import Literal
Expand Down