Skip to content

Commit df64c2b

Browse files
committed
Add # pylint: disable=no-self-use
Still needed for py 3.6
1 parent f78a7e5 commit df64c2b

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.pylintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[MESSAGES CONTROL]
22

33
disable=broad-except,len-as-condition,logging-fstring-interpolation,logging-not-lazy,unexpected-line-ending-format,duplicate-code
4+
load-plugins=pylint.extensions.no_self_use
45

56
[FORMAT]
67

wheatley/rhythm/abstract_rhythm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,6 @@ def initialise_line(
6363
) -> None:
6464
"""Allow the Rhythm object to initialise itself when 'Look to' is called."""
6565

66-
def sleep(self, seconds: float) -> None:
66+
def sleep(self, seconds: float) -> None: # pylint: disable=no-self-use
6767
"""Sleeps for given number of seconds. Allows mocking in tests"""
6868
time.sleep(seconds)

wheatley/row_generation/row_generator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ def _gen_row(self, previous_row: Row, stroke: Stroke, index: int) -> Row:
7979
def _gen_row_and_calls(self, previous_row: Row, stroke: Stroke, index: int) -> Tuple[Row, List[str]]:
8080
return (self._gen_row(previous_row, stroke, index), [])
8181

82-
def start_stroke(self) -> Stroke:
82+
def start_stroke(self) -> Stroke: # pylint: disable=no-self-use
8383
"""Gets the stroke of the first row. This defaults to HANDSTROKE, but should be overridden by
8484
other RowGenerators if different start strokes are possible."""
8585
return HANDSTROKE
8686

87-
def early_calls(self) -> Dict[int, List[str]]:
87+
def early_calls(self) -> Dict[int, List[str]]: # pylint: disable=no-self-use
8888
"""
8989
Returns the calls that should be called **before** going into the changes. This map
9090
goes from <number of rows before the first row of method> to <list of calls that should be

0 commit comments

Comments
 (0)