Skip to content

Commit be1b284

Browse files
[psycopg2] Improve string_types annotations (#16652)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 8d185c6 commit be1b284

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎stubs/psycopg2/psycopg2/_psycopg.pyi‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class cursor:
9797
itersize: int
9898
row_factory: Incomplete | None
9999
scrollable: bool | None
100-
string_types: Incomplete | None
100+
string_types: dict[int, _type] | None
101101
tzinfo_factory: Callable[..., dt.tzinfo]
102102
withhold: bool
103103
def __init__(self, conn: _Connection, name: str | bytes | None = None) -> None: ...
@@ -480,7 +480,7 @@ class connection:
480480
@property
481481
def status(self) -> int: ...
482482
@property
483-
def string_types(self) -> dict[Incomplete, Incomplete]: ...
483+
def string_types(self) -> dict[int, _type]: ...
484484
# Really it's dsn: str, async: int = 0, async_: int = 0, but
485485
# that would be a syntax error.
486486
def __init__(self, dsn: str, *, async_: int = 0) -> None: ...

0 commit comments

Comments
 (0)