Skip to content

Commit

Permalink
Update API for GSSAPI authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanforbes committed Mar 4, 2024
1 parent 9368378 commit ffd43bb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions asyncpg-stubs/connect_utils.pyi
Expand Up @@ -31,6 +31,7 @@ class _ConnectionParameters(NamedTuple):
direct_tls: bool
server_settings: dict[str, str] | None
target_session_attrs: SessionAttribute
krbsrvname: str | None

class _ClientConfiguration(NamedTuple):
command_timeout: float | None
Expand Down
3 changes: 3 additions & 0 deletions asyncpg-stubs/connection.pyi
Expand Up @@ -375,6 +375,7 @@ async def connect(
record_class: type[_Record],
server_settings: dict[str, str] | None = ...,
target_session_attrs: connect_utils.SessionAttribute | None = ...,
krbsrvname: str | None = ...,
) -> Connection[_Record]: ...
@overload
async def connect(
Expand All @@ -398,6 +399,7 @@ async def connect(
record_class: type[_Record] = ...,
server_settings: dict[str, str] | None = ...,
target_session_attrs: connect_utils.SessionAttribute | None = ...,
krbsrvname: str | None = ...,
) -> _Connection: ...
@overload
async def connect(
Expand All @@ -419,6 +421,7 @@ async def connect(
direct_tls: bool = ...,
server_settings: dict[str, str] | None = ...,
target_session_attrs: connect_utils.SessionAttribute | None = ...,
krbsrvname: str | None = ...,
) -> Connection[protocol.Record]: ...

class _ConnectionProxy(Generic[_Record]):
Expand Down
2 changes: 1 addition & 1 deletion asyncpg-stubs/protocol/protocol.pyi
Expand Up @@ -107,7 +107,7 @@ class CoreProtocol:
backend_pid: Any
backend_secret: Any
__pyx_vtable__: Any
def __init__(self, con_params: _ConnectionParameters) -> None: ...
def __init__(self, addr: object, con_params: _ConnectionParameters) -> None: ...
def is_in_transaction(self) -> bool: ...
def __reduce__(self) -> Any: ...

Expand Down

0 comments on commit ffd43bb

Please sign in to comment.