Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Mapping type to match new mypy #834

Merged
merged 2 commits into from Sep 21, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion kopf/_core/engines/peering.py
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