Use Final for multiprocessing constants (#12452)

This commit is contained in:
Max Muoto
2024-07-28 04:59:00 -05:00
committed by GitHub
parent 8ac4af63cd
commit a0b8790f6b
5 changed files with 21 additions and 21 deletions

View File

@@ -15,7 +15,7 @@ if sys.platform == "win32":
else:
__all__ = ["send_handle", "recv_handle", "ForkingPickler", "register", "dump", "DupFd", "sendfds", "recvfds"]
HAVE_SEND_HANDLE: bool
HAVE_SEND_HANDLE: Final[bool]
class ForkingPickler(pickle.Pickler):
dispatch_table: _DispatchTableType