forked from public/pysim
docs: Fix docstring syntax to avoid warnings
pySim/tlv.py:docstring of pySim.tlv.IE.from_bytes:1: ERROR: Unknown target name: "part". pySim/tlv.py:docstring of pySim.tlv.IE.to_bytes:1: ERROR: Unknown target name: "part". Change-Id: I170176910c4519005b9276dbe5854aaaecb58efb
This commit is contained in:
@@ -178,7 +178,7 @@ class IE(Transcodable, metaclass=TlvMeta):
|
|||||||
"""Convert the internal representation to entire IE including IE header."""
|
"""Convert the internal representation to entire IE including IE header."""
|
||||||
|
|
||||||
def to_bytes(self) -> bytes:
|
def to_bytes(self) -> bytes:
|
||||||
"""Convert the internal representation _of the value part_ to binary bytes."""
|
"""Convert the internal representation *of the value part* to binary bytes."""
|
||||||
if self.is_constructed():
|
if self.is_constructed():
|
||||||
# concatenate the encoded IE of all children to form the value part
|
# concatenate the encoded IE of all children to form the value part
|
||||||
out = b''
|
out = b''
|
||||||
@@ -189,7 +189,7 @@ class IE(Transcodable, metaclass=TlvMeta):
|
|||||||
return super().to_bytes()
|
return super().to_bytes()
|
||||||
|
|
||||||
def from_bytes(self, do: bytes):
|
def from_bytes(self, do: bytes):
|
||||||
"""Parse _the value part_ from binary bytes to internal representation."""
|
"""Parse *the value part* from binary bytes to internal representation."""
|
||||||
if self.nested_collection:
|
if self.nested_collection:
|
||||||
self.children = self.nested_collection.from_bytes(do)
|
self.children = self.nested_collection.from_bytes(do)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user