mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-05 17:37:41 +08:00
Use PEP 585 syntax wherever possible (#6717)
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import sys
|
||||
from typing import Any, Tuple
|
||||
from typing import Any
|
||||
|
||||
# Because UUID has properties called int and bytes we need to rename these temporarily.
|
||||
_Int = int
|
||||
_Bytes = bytes
|
||||
_FieldsType = Tuple[int, int, int, int, int, int]
|
||||
_FieldsType = tuple[int, int, int, int, int, int]
|
||||
|
||||
if sys.version_info >= (3, 7):
|
||||
from enum import Enum
|
||||
|
||||
Reference in New Issue
Block a user