Use "all +=" instead of duplicating the branches (#7865)

This commit is contained in:
Sebastian Rittau
2022-06-07 13:32:19 +02:00
committed by GitHub
parent 15ad2657db
commit 214bf15dce
3 changed files with 127 additions and 480 deletions

View 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