Skip to content

Commit 853f603

Browse files
committed
fix typing lint errors
1 parent 13e99a3 commit 853f603

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

temporalio/contrib/opentelemetry.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ def __init__(
649649
success_is_complete: bool,
650650
):
651651
self._ctx = contextvars.copy_context()
652-
self._token = None
652+
self._token: Optional[contextvars.Token] = None
653653
self._owner = interceptor
654654
self._success_is_complete = success_is_complete
655655

@@ -662,7 +662,7 @@ def __exit__(
662662
exc_type: Optional[type[BaseException]],
663663
exc_value: Optional[BaseException],
664664
traceback: Optional[TracebackType], # noqa: F811
665-
) -> bool | None:
665+
):
666666
self._ctx.run(self._end, exc_type, exc_value, traceback)
667667

668668
def _start(self):

temporalio/worker/_workflow.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -337,9 +337,6 @@ async def _handle_activation(
337337
raise deadlock_exc from None
338338

339339
except Exception as err:
340-
if isinstance(err, GeneratorExit):
341-
print("###############generator exit#############")
342-
343340
if isinstance(err, _DeadlockError):
344341
err.swap_traceback()
345342

0 commit comments

Comments
 (0)