Skip to content

Commit

Permalink
Fix typing of methods for pyright (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvcnt committed Jan 12, 2024
1 parent 0bff022 commit 10d099b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions temporalio/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class MethodAsyncSingleParam(
"""Generic callable type."""

def __call__(
__self, self: ProtocolSelfType, __arg: ProtocolParamType
self, __self: ProtocolSelfType, __arg: ProtocolParamType
) -> Awaitable[ProtocolReturnType]:
"""Generic callable type callback."""
...
Expand All @@ -94,7 +94,7 @@ class MethodSyncSingleParam(
"""Generic callable type."""

def __call__(
__self, self: ProtocolSelfType, __arg: ProtocolParamType
self, __self: ProtocolSelfType, __arg: ProtocolParamType
) -> ProtocolReturnType:
"""Generic callable type callback."""
...
Expand All @@ -104,7 +104,7 @@ class MethodSyncOrAsyncNoParam(Protocol[ProtocolSelfType, ProtocolReturnType]):
"""Generic callable type."""

def __call__(
__self, self: ProtocolSelfType
self, __self: ProtocolSelfType
) -> Union[ProtocolReturnType, Awaitable[ProtocolReturnType]]:
"""Generic callable type callback."""
...
Expand All @@ -116,7 +116,7 @@ class MethodSyncOrAsyncSingleParam(
"""Generic callable type."""

def __call__(
__self, self: ProtocolSelfType, __param: ProtocolParamType
self, __self: ProtocolSelfType, __param: ProtocolParamType
) -> Union[ProtocolReturnType, Awaitable[ProtocolReturnType]]:
"""Generic callable type callback."""
...
Expand Down

0 comments on commit 10d099b

Please sign in to comment.