Skip to content

Commit 605bcb3

Browse files
committed
Revert change to callable types
1 parent a79c87e commit 605bcb3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

temporalio/types.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,8 @@ class MethodAsyncSingleParam(
8181
):
8282
"""Generic callable type."""
8383

84-
# TODO(nexus-prerelease)*: review changes to signatures in this file
8584
def __call__(
86-
self, __self: ProtocolSelfType, __arg: ProtocolParamType
85+
self, __self: ProtocolSelfType, __arg: ProtocolParamType, /
8786
) -> Awaitable[ProtocolReturnType]:
8887
"""Generic callable type callback."""
8988
...
@@ -95,7 +94,7 @@ class MethodSyncSingleParam(
9594
"""Generic callable type."""
9695

9796
def __call__(
98-
self, __self: ProtocolSelfType, __arg: ProtocolParamType
97+
self, __self: ProtocolSelfType, __arg: ProtocolParamType, /
9998
) -> ProtocolReturnType:
10099
"""Generic callable type callback."""
101100
...
@@ -117,7 +116,7 @@ class MethodSyncOrAsyncSingleParam(
117116
"""Generic callable type."""
118117

119118
def __call__(
120-
self, __self: ProtocolSelfType, __param: ProtocolParamType
119+
self, __self: ProtocolSelfType, __param: ProtocolParamType, /
121120
) -> Union[ProtocolReturnType, Awaitable[ProtocolReturnType]]:
122121
"""Generic callable type callback."""
123122
...

0 commit comments

Comments
 (0)