mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Use "all +=" instead of duplicating the branches (#7865)
This commit is contained in:
15
test_cases/stdlib/typing/all.py
Normal file
15
test_cases/stdlib/typing/all.py
Normal file
@@ -0,0 +1,15 @@
|
||||
# pyright: reportWildcardImportFromLibrary=false
|
||||
|
||||
"""
|
||||
This tests that star imports work when using "all += " syntax.
|
||||
"""
|
||||
|
||||
import sys
|
||||
from typing import * # noqa: F403
|
||||
from zipfile import * # noqa: F403
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
x: Annotated[int, 42] # noqa: F405
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
p: Path # noqa: F405
|
||||
Reference in New Issue
Block a user