From: stankudrow Date: Sat, 4 Jan 2025 06:58:30 +0000 (+0300) Subject: docs: fix ']]' return value in Dumper.get_key() docs X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F979%2Fhead;p=thirdparty%2Fpsycopg.git docs: fix ']]' return value in Dumper.get_key() docs Close #921. --- diff --git a/psycopg/psycopg/abc.py b/psycopg/psycopg/abc.py index aadf96746..cf653b4ee 100644 --- a/psycopg/psycopg/abc.py +++ b/psycopg/psycopg/abc.py @@ -30,7 +30,7 @@ Query: TypeAlias = Union[LiteralString, bytes, "sql.SQL", "sql.Composed"] Params: TypeAlias = Union[Sequence[Any], Mapping[str, Any]] ConnectionType = TypeVar("ConnectionType", bound="BaseConnection[Any]") PipelineCommand: TypeAlias = Callable[[], None] -DumperKey: TypeAlias = Union[type, "tuple[DumperKey, ...]"] +DumperKey: TypeAlias = Union[type, tuple["DumperKey", ...]] ConnParam: TypeAlias = Union[str, int, None] ConnDict: TypeAlias = dict[str, ConnParam] ConnMapping: TypeAlias = Mapping[str, ConnParam]