Skip to content

Commit

Permalink
Fix SingleParam types for pyright checking (#471)
Browse files Browse the repository at this point in the history
  • Loading branch information
Holi0317 authored Feb 13, 2024
1 parent 50768df commit 8dce5b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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 @@ -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 8dce5b5

Please sign in to comment.