-
Notifications
You must be signed in to change notification settings - Fork 431
-
so i just type hinted a user record like
class User(asyncpg.Record): if TYPE_CHECKING: id: int username: str password: str def __getattr__(self, name: str) -> Any: return self[name]
but i get the following error from pyright
image
so do i need to do some additional stuff for this?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment