mypy: Set type of rabbitmq_heartbeat to Optional[int] in queue.py.

This commit is contained in:
neiljp (Neil Pilgrim) 2017-07-07 21:57:54 -07:00 committed by Tim Abbott
parent 07255d49d5
commit 32269ad142
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ class SimpleQueueClient(object):
self.channel = None # type: Optional[BlockingChannel]
self.consumers = defaultdict(set) # type: Dict[str, Set[Consumer]]
# Disable RabbitMQ heartbeats since BlockingConnection can't process them
self.rabbitmq_heartbeat = 0
self.rabbitmq_heartbeat = 0 # type: Optional[int]
self._connect()
def _connect(self):