diff --git a/rcon/source/proto.py b/rcon/source/proto.py index e14981f..35ff08f 100644 --- a/rcon/source/proto.py +++ b/rcon/source/proto.py @@ -87,7 +87,7 @@ class Packet(NamedTuple): payload: bytes terminator: bytes = TERMINATOR - def __add__(self, other: Packet | None): + def __add__(self, other: Packet | None) -> Packet: if other is None: return self @@ -107,7 +107,7 @@ class Packet(NamedTuple): self.terminator ) - def __radd__(self, other: Packet): + def __radd__(self, other: Packet | None) -> Packet: if other is None: return self