mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-01 15:33:47 +08:00
Delete python 2 branches from third-party stubs (#7741)
Since #7703, we no longer have third-party stubs that support Python 2, so code like `if sys.version_info >= (3, 0)` can be simplified.
This commit is contained in:
1 parent
002c8e2586
commit
e613fc483b
21 files changed
+40
-203
No files matched your search
@@ -1,13 +1,9 @@
|
||||
import sys
|
||||
from _typeshed import Self
|
||||
from collections.abc import Iterator, Sequence
|
||||
from configparser import ConfigParser
|
||||
from typing import Any
|
||||
|
||||
if sys.version_info >= (3, 0):
|
||||
from configparser import ConfigParser
|
||||
else:
|
||||
from ConfigParser import ConfigParser
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
from re import Pattern
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user