@@ -577,12 +577,12 @@ def config(self) -> WorkerConfig:
577577 @property
578578 def task_queue (self ) -> str :
579579 """Task queue this worker is on."""
580- return self ._config ["task_queue" ]
580+ return self ._config ["task_queue" ] # type: ignore[reportTypedDictNotRequiredAccess]
581581
582582 @property
583583 def client (self ) -> temporalio .client .Client :
584584 """Client currently set on the worker."""
585- return self ._config ["client" ]
585+ return self ._config ["client" ] # type: ignore[reportTypedDictNotRequiredAccess]
586586
587587 @client .setter
588588 def client (self , value : temporalio .client .Client ) -> None :
@@ -679,9 +679,9 @@ async def raise_on_shutdown():
679679 )
680680 if exception :
681681 logger .error ("Worker failed, shutting down" , exc_info = exception )
682- if self ._config ["on_fatal_error" ]:
682+ if self ._config ["on_fatal_error" ]: # type: ignore[reportTypedDictNotRequiredAccess]
683683 try :
684- await self ._config ["on_fatal_error" ](exception )
684+ await self ._config ["on_fatal_error" ](exception ) # type: ignore[reportTypedDictNotRequiredAccess]
685685 except :
686686 logger .warning ("Fatal error handler failed" )
687687
@@ -692,7 +692,7 @@ async def raise_on_shutdown():
692692
693693 # Cancel the shutdown task (safe if already done)
694694 tasks [None ].cancel ()
695- graceful_timeout = self ._config ["graceful_shutdown_timeout" ]
695+ graceful_timeout = self ._config ["graceful_shutdown_timeout" ] # type: ignore[reportTypedDictNotRequiredAccess]
696696 logger .info (
697697 f"Beginning worker shutdown, will wait { graceful_timeout } before cancelling activities"
698698 )
0 commit comments