Fix #1262: Remove __init__ in models protocols to fix typing error with Pylance (#1266)

Replication of original fix for #1262 to the AccessTokenProtocol class.
This commit is contained in:
Nerixjk
2023-08-10 08:13:59 +01:00
committed by GitHub
parent 381cd1a9b6
commit 830898c5bf

View File

@@ -11,8 +11,5 @@ class AccessTokenProtocol(Protocol[models.ID]):
user_id: models.ID
created_at: datetime
def __init__(self, *args, **kwargs) -> None:
... # pragma: no cover
AP = TypeVar("AP", bound=AccessTokenProtocol)