hypercorn icon indicating copy to clipboard operation
hypercorn copied to clipboard

Type hint for check_multiprocess_shutdown_event is confusing for mypy

Open doc-sheet opened this issue 1 year ago • 0 comments

Hi! For now type hint for shutdown_event is multiprocessing.synchronize.Event

I guess it should be threading.Event instead: simple way to create and pass such event is multiprocessing.Manager().Event() and that's just a threading.Event clone.

references:

  1. multiprocessing.managers.SyncManager.Event
  2. multiprocessing.Event

doc-sheet avatar Jul 31 '24 22:07 doc-sheet