mypy: Use Dict instead of Mapping in queues.

This commit is contained in:
Umair Khan
2017-09-21 14:11:50 +05:00
committed by Tim Abbott
parent 5eddedd9f6
commit 7d6ddaad26
2 changed files with 4 additions and 4 deletions

View File

@@ -135,7 +135,7 @@ class SimpleQueueClient(object):
consumer_tag=self._generate_ctag(queue_name)))
def register_json_consumer(self, queue_name, callback):
# type: (str, Callable[[Mapping[str, Any]], None]) -> None
# type: (str, Callable[[Dict[str, Any]], None]) -> None
def wrapped_callback(ch, method, properties, body):
# type: (BlockingChannel, Basic.Deliver, pika.BasicProperties, str) -> None
callback(ujson.loads(body))