Skip to content

Commit f3c2059

Browse files
committed
Fix typing
1 parent 5c5dae8 commit f3c2059

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

parsec/_parsec_pyi/addrs.pyi

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import Any, Union
5+
from typing import Union
66

77
from parsec._parsec_pyi.crypto import VerifyKey
88
from parsec._parsec_pyi.enumerate import InvitationType
@@ -164,7 +164,7 @@ class BackendInvitationAddr(BackendAddr):
164164
def __init__(
165165
self,
166166
organization_id: OrganizationID,
167-
invitation_type: Any, # TODO: find correct type
167+
invitation_type: InvitationType,
168168
token: InvitationToken,
169169
hostname: str,
170170
port: int | None,
@@ -182,7 +182,7 @@ class BackendInvitationAddr(BackendAddr):
182182
@property
183183
def organization_id(self) -> OrganizationID: ...
184184
@property
185-
def invitation_type(self) -> Any: ...
185+
def invitation_type(self) -> InvitationType: ...
186186
@property
187187
def token(self) -> InvitationToken: ...
188188
def get_backend_addr(self) -> BackendAddr: ...

parsec/_parsec_pyi/protocol/invite.pyi

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
from __future__ import annotations
44

5-
from typing import Any
6-
75
# Invite
86
from parsec._parsec import (
97
DateTime,
@@ -227,7 +225,7 @@ class InviteListItem:
227225
) -> InviteListItem: ...
228226
@classmethod
229227
def Device(
230-
cls, token: InvitationToken, created_on: DateTime, status: Any
228+
cls, token: InvitationToken, created_on: DateTime, status: InvitationStatus
231229
) -> InviteListItem: ...
232230
@property
233231
def type(self) -> InvitationType: ...

0 commit comments

Comments
 (0)