Skip to content

Commit

Permalink
chore: Fix errors from new mypy version
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Dec 6, 2023
1 parent f9bfcd3 commit 4e5d355
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions yapw/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ class PublishKeywords(TypedDict, total=False):
properties: pika.BasicProperties


ConsumerCallback = Callable[[State, pika.channel.Channel, pika.spec.Basic.Deliver, pika.BasicProperties, Any], None]
ConsumerCallback = Callable[
[State[Any], pika.channel.Channel, pika.spec.Basic.Deliver, pika.BasicProperties, Any], None
]
Decorator = Callable[
[Decode, ConsumerCallback, State, pika.channel.Channel, pika.spec.Basic.Deliver, pika.BasicProperties, bytes], None
[Decode, ConsumerCallback, State[Any], pika.channel.Channel, pika.spec.Basic.Deliver, pika.BasicProperties, bytes],
None,
]

0 comments on commit 4e5d355

Please sign in to comment.