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:
Akuli authored and GitHub committed 2022-04-29 20:53:01 +01:00
1 parent 002c8e2586
commit e613fc483b
21 files changed
+40 -203

No files matched your search

+1 -6
View File
@@ -1,12 +1,7 @@
import sys
from _typeshed import ReadableBuffer
from hashlib import _Hash
from typing_extensions import SupportsIndex, final
if sys.version_info >= (3, 0):
from hashlib import _Hash
else:
from hashlib import _hash as _Hash
VERSION: str
XXHASH_VERSION: str