Skip to content

Commit d9e8582

Browse files
committed
remove pylint disable comments
1 parent 0b29207 commit d9e8582

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

adafruit_pyoa.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959

6060

6161
class PYOA_Graphics:
62-
# pylint: disable=too-many-instance-attributes
6362
"""A choose your own adventure game framework."""
6463

6564
def __init__(self) -> None:
@@ -183,9 +182,7 @@ def load_game(self, game_directory: str) -> None:
183182
)
184183
self._gamefilename = game_directory + "/cyoa.json"
185184
try:
186-
with open( # pylint: disable=unspecified-encoding
187-
self._gamefilename
188-
) as game_file:
185+
with open(self._gamefilename) as game_file:
189186
self._game = json.load(game_file)
190187
except OSError as err:
191188
raise OSError("Could not open game file " + self._gamefilename) from err
@@ -367,7 +364,7 @@ def play_sound(
367364
print("Playing sound", filename)
368365
self._display.refresh(target_frames_per_second=60)
369366
try:
370-
self._wavfile = open(filename, "rb") # pylint: disable=consider-using-with
367+
self._wavfile = open(filename, "rb")
371368
except OSError as err:
372369
raise OSError("Could not locate sound file", filename) from err
373370

0 commit comments

Comments
 (0)