Skip to content

Commit bfc3596

Browse files
committed
Fixed some lint/type issues.
1 parent 8c60b5d commit bfc3596

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pacai/core/board.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def apply_action(self, action: pacai.core.action.Action) -> 'Position':
164164

165165
return self.add(offset)
166166

167-
def __lt__(self, other: 'Position') -> bool:
167+
def __lt__(self, other: 'Position') -> bool: # type: ignore[override]
168168
return (self._hash < other._hash)
169169

170170
def __eq__(self, other: object) -> bool:

pacai/core/mdp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def __init__(self,
5454
def is_terminal(self) -> bool:
5555
return (self.position == TERMINAL_POSITION)
5656

57-
def __lt__(self, other: 'MDPStatePosition') -> bool:
57+
def __lt__(self, other: 'MDPStatePosition') -> bool: # type: ignore[override]
5858
return (self.position < other.position)
5959

6060
def __eq__(self, other: object) -> bool:

pacai/gridworld/mdp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def get_transitions(self, state: pacai.core.mdp.MDPStatePosition, action: pacai.
132132
if (action not in possible_actions):
133133
raise ValueError(f"Got an illegal action '{action}'. Available actions are: {possible_actions}.")
134134

135-
(north_state, east_state, south_state, west_state) = self._get_move_states(state)
135+
(north_state, east_state, south_state, west_state) = self._get_move_states(state) # pylint: disable=unbalanced-tuple-unpacking
136136

137137
transitions = []
138138

0 commit comments

Comments
 (0)