squeaknode/squeaknode/core/squeak_peer.py
Jonathan Zernik 62c13ddaba
Create peer with default port (#569)
* Added unit test for create peer

* Got test working for create peer with default port

* Use namedtuple for squeak peer class

* Rename test name in test create peer

* Use type hints for insert squeak peer
2021-01-06 23:47:03 -08:00

11 lines
206 B
Python

from typing import NamedTuple
from typing import Optional
class SqueakPeer(NamedTuple):
peer_id: Optional[int]
peer_name: str
host: str
port: int
uploading: bool
downloading: bool