Skip to content

Commit

Permalink
Merge pull request #834 from sobolevn/patch-1
Browse files Browse the repository at this point in the history
Update `Mapping` type to match new `mypy`
  • Loading branch information
nolar committed Sep 21, 2021
2 parents 6031d38 + 0c50c9f commit fe56b56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kopf/_core/engines/peering.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ async def process_peering_event(
return

# Find if we are still the highest priority operator.
pairs = cast(Mapping[str, Mapping[str, object]], body.get('status', {}))
pairs = cast(Mapping[str, Mapping[str, Any]], body.get('status', {}))
peers = [Peer(identity=Identity(opid), **opinfo) for opid, opinfo in pairs.items()]
dead_peers = [peer for peer in peers if peer.is_dead]
live_peers = [peer for peer in peers if not peer.is_dead and peer.identity != identity]
Expand Down

0 comments on commit fe56b56

Please sign in to comment.