Skip to content

Commit 8dce5b5

Browse files
authored
Fix SingleParam types for pyright checking (#471)
1 parent 50768df commit 8dce5b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

temporalio/types.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class MethodAsyncSingleParam(
8282
"""Generic callable type."""
8383

8484
def __call__(
85-
self, __self: ProtocolSelfType, __arg: ProtocolParamType
85+
self, __self: ProtocolSelfType, __arg: ProtocolParamType, /
8686
) -> Awaitable[ProtocolReturnType]:
8787
"""Generic callable type callback."""
8888
...
@@ -94,7 +94,7 @@ class MethodSyncSingleParam(
9494
"""Generic callable type."""
9595

9696
def __call__(
97-
self, __self: ProtocolSelfType, __arg: ProtocolParamType
97+
self, __self: ProtocolSelfType, __arg: ProtocolParamType, /
9898
) -> ProtocolReturnType:
9999
"""Generic callable type callback."""
100100
...
@@ -116,7 +116,7 @@ class MethodSyncOrAsyncSingleParam(
116116
"""Generic callable type."""
117117

118118
def __call__(
119-
self, __self: ProtocolSelfType, __param: ProtocolParamType
119+
self, __self: ProtocolSelfType, __param: ProtocolParamType, /
120120
) -> Union[ProtocolReturnType, Awaitable[ProtocolReturnType]]:
121121
"""Generic callable type callback."""
122122
...

0 commit comments

Comments
 (0)