Commit d30e77e3 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Improve Message.unpack docstring

parent 7dd7508f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -171,7 +171,7 @@ class Message(metaclass=ABCMeta):
	@classmethod
	def unpack(cls, buf: FixedSizeBuffer) -> tuple[Message, int]:
		"""
		Unpack the first message in a buffer and return an instance of the correct class
		Unpack a message in buff and return a subclass instance and the number of bytes read
		"""
		hdr_size = cls._hdr_struct.size
		if buf.filled < hdr_size: