Skip to content

Commit

Permalink
[types] Reorder methods to fix type checking.
Browse files Browse the repository at this point in the history
It's weird that this matters... but this is how I would have ordered the
methods anyway!
  • Loading branch information
Andy Chu committed Jul 16, 2019
1 parent eedc731 commit 3c9adf3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions frontend/reader.py
Expand Up @@ -69,6 +69,11 @@ def __init__(self, arena, prompt_ev, hist_ev, line_input, prompt_state,

self.Reset()

def Reset(self):
# type: () -> None
"""Called after command execution."""
self.render_ps1 = True

def _GetLine(self):
# type: () -> Optional[str]

Expand Down Expand Up @@ -106,11 +111,6 @@ def _GetLine(self):
self.render_ps1 = False
return line

def Reset(self):
# type: () -> None
"""Called after command execution."""
self.render_ps1 = True


class FileLineReader(_Reader):
"""For -c and stdin?"""
Expand Down

0 comments on commit 3c9adf3

Please sign in to comment.