Skip to content

Commit

Permalink
Merge pull request #1356 from user202729/patch-1
Browse files Browse the repository at this point in the history
Fix several mistakes in docstring
  • Loading branch information
benoit-pierre committed Jun 23, 2021
2 parents f3dc3ae + 32471ba commit 0501aa3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions plover/formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ def _translation_to_actions(translation, ctx):
translation -- A string with the translation to render.
last_action -- The action in whose context this translation is formatted.
ctx -- The context in which this translation is formatted.
Returns: A list of actions.
Expand Down Expand Up @@ -765,7 +765,7 @@ def _raw_to_actions(stroke, ctx):
stroke -- A string representation of the stroke.
last_action -- The context in which the new actions are created
ctx -- The context in which the new actions are created.
Returns: A list of actions.
Expand Down Expand Up @@ -804,7 +804,7 @@ def _atom_to_action(atom, ctx):
either entirely a single meta command or entirely text containing no meta
commands.
last_action -- The context in which the new action takes place.
ctx -- The context in which the new action takes place.
Returns: An action for the atom.
Expand Down
4 changes: 2 additions & 2 deletions plover/machine/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ class SerialStenotypeBase(ThreadedStenotypeBase):
def __init__(self, serial_params):
"""Monitor the stenotype over a serial port.
Keyword arguments are the same as the keyword arguments for a
serial.Serial object.
The key-value pairs in the <serial_params> dict are the same
as the keyword arguments for a serial.Serial object.
"""
ThreadedStenotypeBase.__init__(self)
Expand Down
2 changes: 1 addition & 1 deletion plover/translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def set_state(self, state):
self._state = state

def clear_state(self):
"""Reset the sate of the translator."""
"""Reset the state of the translator."""
self._state = _State()

def translate_stroke(self, stroke):
Expand Down

0 comments on commit 0501aa3

Please sign in to comment.