mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-02 19:56:52 +00:00
Update type hint and expression for _multiprocessing_is_fork()
This commit is contained in:
parent
ecee230c6f
commit
56dd10eae8
1 changed files with 2 additions and 2 deletions
|
|
@ -40,9 +40,9 @@ SERIAL_RETRY_ERRNOS = {
|
|||
}
|
||||
|
||||
|
||||
def _multiprocessing_is_fork(): # type () -> bool
|
||||
def _multiprocessing_is_fork() -> bool:
|
||||
"""Class state is only preserved when using the `fork` strategy."""
|
||||
return multiprocessing and multiprocessing.get_start_method() == "fork"
|
||||
return bool(multiprocessing and multiprocessing.get_start_method() == "fork")
|
||||
|
||||
|
||||
class Manager:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue