Skip to content

Conversation

namoshizun
Copy link

This controls whether to enqueue messages to a multiprocessing-safe queue or a simple queue. If the user knows the program will never spawn child processes, settings this option to False may reduce the enqueue overhead.

BTW: for some reason the ruff linter insists on breaking up line 385 in init.pyi which misplaces the required "noqa: N805" rule on this line... I had to ignore the ruff rule in pre-commit for now until I figure out what went wrong 😑

…e, will enqueue messages to a queue.Queue instance
@@ -377,7 +382,11 @@ class Logger:
def exception(__self, __message: Any) -> None: ... # noqa: N805
@overload
def log(
__self, __level: Union[int, str], __message: str, *args: Any, **kwargs: Any # noqa: N805
__self,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The noqa: N805 comment should go on the __self line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants