mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +00:00
typing: Use TYPE_CHECKING when dealing with cyclic dependencies.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from typing import Dict, Optional
|
||||
from typing import Dict, Optional, TYPE_CHECKING
|
||||
|
||||
if False:
|
||||
if TYPE_CHECKING:
|
||||
from zerver.tornado.event_queue import ClientDescriptor
|
||||
|
||||
descriptors_by_handler_id = {} # type: Dict[int, ClientDescriptor]
|
||||
|
||||
Reference in New Issue
Block a user