Skip to content

Commit 10d099b

Browse files
authored
Fix typing of methods for pyright (#461)
1 parent 0bff022 commit 10d099b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

temporalio/types.py

+4-4
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
...
@@ -104,7 +104,7 @@ class MethodSyncOrAsyncNoParam(Protocol[ProtocolSelfType, ProtocolReturnType]):
104104
"""Generic callable type."""
105105

106106
def __call__(
107-
__self, self: ProtocolSelfType
107+
self, __self: ProtocolSelfType
108108
) -> Union[ProtocolReturnType, Awaitable[ProtocolReturnType]]:
109109
"""Generic callable type callback."""
110110
...
@@ -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)