From 10d099b90f142c9c27dff53098a86fb27ddb9fdc Mon Sep 17 00:00:00 2001 From: Vincent P Date: Fri, 12 Jan 2024 15:31:03 +0100 Subject: [PATCH] Fix typing of methods for pyright (#461) --- temporalio/types.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/temporalio/types.py b/temporalio/types.py index c6528a84..a756d328 100644 --- a/temporalio/types.py +++ b/temporalio/types.py @@ -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.""" ... @@ -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.""" ... @@ -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.""" ... @@ -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.""" ...