1
0

lnchannel: make AbstractChannel inherit ABC

and add some type annotations, clean up method signatures
This commit is contained in:
SomberNight
2020-04-13 15:57:53 +02:00
parent 821431a239
commit 8e8ab775eb
6 changed files with 134 additions and 71 deletions

View File

@@ -89,6 +89,7 @@ def create_ephemeral_key() -> (bytes, bytes):
class LNTransportBase:
reader: StreamReader
writer: StreamWriter
privkey: bytes
def name(self) -> str:
raise NotImplementedError()