Skip to content

Commit

Permalink
Base class for the Record class; Closes bryanforbes#122
Browse files Browse the repository at this point in the history
  • Loading branch information
poofeg committed Nov 5, 2022
1 parent 4bcdd4c commit 557eb93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions asyncpg-stubs/protocol/protocol.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import asyncio
import asyncio.protocols
import hmac
from codecs import CodecInfo
from collections.abc import Callable, Iterable, Iterator, Sequence
from collections.abc import Callable, Iterable, Iterator, Sequence, Mapping
from hashlib import md5, sha256
from typing import Any, ClassVar, Generic, NewType, TypeVar, overload
from typing_extensions import Final, Literal, TypeAlias, final
Expand Down Expand Up @@ -249,7 +249,7 @@ class DataCodecConfig:

class Protocol(BaseProtocol[_Record], asyncio.protocols.Protocol): ...

class Record:
class Record(Mapping[str, Any]):
@overload
def get(self, key: str) -> Any | None: ...
@overload
Expand Down

0 comments on commit 557eb93

Please sign in to comment.