Browse Source

(trivial) fix type annotation

dependabot/pip/contrib/deterministic-build/ecdsa-0.13.3
SomberNight 5 years ago
committed by ThomasV
parent
commit
fa5302bcfb
  1. 2
      electrum/channel_db.py

2
electrum/channel_db.py

@ -468,7 +468,7 @@ class ChannelDB(SqlDB):
self.update_counts() self.update_counts()
def get_routing_policy_for_channel(self, start_node_id: bytes, def get_routing_policy_for_channel(self, start_node_id: bytes,
short_channel_id: bytes) -> Optional[bytes]: short_channel_id: bytes) -> Optional[Policy]:
if not start_node_id or not short_channel_id: return None if not start_node_id or not short_channel_id: return None
channel_info = self.get_channel_info(short_channel_id) channel_info = self.get_channel_info(short_channel_id)
if channel_info is not None: if channel_info is not None:

Loading…
Cancel
Save