Use TypeAlias for type aliases where possible, part II (#7667)

This commit is contained in:
Alex Waygood
2022-04-20 20:02:47 +01:00
committed by GitHub
parent c653be73b8
commit b093c90a94
41 changed files with 91 additions and 90 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
from _typeshed import Self
from collections.abc import Mapping
from typing import Any
from typing_extensions import TypeAlias
from .retry import Retry
@@ -12,7 +13,7 @@ SYM_EMPTY: Any
SERVER_CLOSED_CONNECTION_ERROR: Any
# Options as passed to Pool.get_connection().
_ConnectionPoolOptions = Any
_ConnectionPoolOptions: TypeAlias = Any
class BaseParser:
EXCEPTION_CLASSES: Any