mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
Use PEP 585 syntax wherever possible (#6717)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
Reference in New Issue
Block a user