Skip to content

Commit 892f4ef

Browse files
Bernd VerstCopilot
andcommitted
Fix log_handler docstring type for consistency
The Copilot reviewer noted that the log_handler parameter docstring in TaskHubGrpcWorker.__init__ used optional[logging.Handler], which is not valid typing syntax and was inconsistent with the surrounding parameters' X | None, optional form (a pre-existing lowercase typo that the typing-modernization regex didn't catch). Normalize it to logging.Handler | None, optional to match the style used for all other parameters in the docstring. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent e55a700 commit 892f4ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

durabletask/worker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ class TaskHubGrpcWorker:
442442
Defaults to the value from environment variables or localhost.
443443
metadata (list[tuple[str, str]] | None, optional): gRPC metadata to include with
444444
requests. Used for authentication and routing. Defaults to None.
445-
log_handler (optional[logging.Handler]): Custom logging handler for worker logs. Defaults to None.
445+
log_handler (logging.Handler | None, optional): Custom logging handler for worker logs. Defaults to None.
446446
log_formatter (logging.Formatter | None, optional): Custom log formatter.
447447
Defaults to None.
448448
secure_channel (bool, optional): Whether to use a secure gRPC channel (TLS).

0 commit comments

Comments
 (0)