Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libpebble2/protocol/base/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class Meta:
command = Uint8(default=0x01)
response = Uint8(enum=AppFetchStatus)

:param \*\*kwargs: Initial values for any properties on the object.
:param \\*\\*kwargs: Initial values for any properties on the object.
"""
def __init__(self, **kwargs):
for k, v in iteritems(kwargs):
Expand Down
8 changes: 4 additions & 4 deletions libpebble2/protocol/base/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ class Union(Field):

:param determinant: The field that is used to determine which possible entry to use.
:type determinant: Field
:param contents: A :class:`dict` mapping values of ``determinant`` to either :class:`Field`\ s or
:class:`PebblePacket`\ s
:param contents: A :class:`dict` mapping values of ``determinant`` to either :class:`Field`\\ s or
:class:`PebblePacket`\\ s
that this :class:`Union` can represent. This dictionary is inverted for use in serialisation, so it
should be a one-to-one mapping.
:type contents: dict
Expand Down Expand Up @@ -424,7 +424,7 @@ def dependent_fields(self):

class PascalList(Field):
"""
Represents a list of :class:`.PebblePacket`\ s, each of which is prefixed with a byte indicating its length.
Represents a list of :class:`.PebblePacket`\\ s, each of which is prefixed with a byte indicating its length.

:param member_type: The type of :class:`.PebblePacket` in the list.
:type member_type: ~builtins.type
Expand Down Expand Up @@ -479,7 +479,7 @@ def dependent_fields(self):

class FixedList(Field):
"""
Represents a list of either :class:`PebblePacket`\ s or :class:`Field`\ s with either a fixed number of entries,
Represents a list of either :class:`PebblePacket`\\ s or :class:`Field`\\ s with either a fixed number of entries,
a fixed length (in bytes), or both. There are no dividers between entries; the members must be fixed-length.

If neither ``count`` nor ``length`` is set, members will be read until the end of the buffer.
Expand Down