Use PEP 585 syntax wherever possible (#6717)

This commit is contained in:
Alex Waygood
2021-12-28 10:31:43 +00:00
committed by GitHub
parent e6cb341d94
commit 8d5d2520ac
237 changed files with 966 additions and 1069 deletions

View File

@@ -1,4 +1,4 @@
from typing import Any, FrozenSet
from typing import Any
from MySQLdb import connections as connections, constants as constants, converters as converters, cursors as cursors
from MySQLdb._mysql import (
@@ -35,7 +35,7 @@ threadsafety: int
apilevel: str
paramstyle: str
class DBAPISet(FrozenSet[Any]):
class DBAPISet(frozenset[Any]):
def __eq__(self, other): ...
STRING: Any

View File

@@ -1,9 +1,9 @@
import builtins
from typing import Any, Tuple
from typing import Any
import MySQLdb._exceptions
version_info: Tuple[Any, ...]
version_info: tuple[Any, ...]
class DataError(MySQLdb._exceptions.DatabaseError): ...
class DatabaseError(MySQLdb._exceptions.Error): ...