Skip to content

Commit 84b025b

Browse files
committed
remove pylint disables and explcitly re-set hidden prop
1 parent 7f89d19 commit 84b025b

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Metro/Metro_RP2350_Match3/match3_game/match3_game_helpers.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -666,9 +666,7 @@ def handle_left_click(self, player_index, coords):
666666
# load the game from the given game state
667667
self.load_from_game_state(self.game_state)
668668
# hide the title screen
669-
self.title_screen.hidden = (
670-
True # pylint: disable=attribute-defined-outside-init
671-
)
669+
self.title_screen.hidden = True
672670
# set the current state to open play
673671
self.cur_state = STATE_PLAYING_OPEN
674672

@@ -684,9 +682,7 @@ def handle_left_click(self, player_index, coords):
684682
# initialize a new game
685683
self.init_new_game()
686684
# hide the title screen
687-
self.title_screen.hidden = (
688-
True # pylint: disable=attribute-defined-outside-init
689-
)
685+
self.title_screen.hidden = True
690686
# set the current state to open play
691687
self.cur_state = STATE_PLAYING_OPEN
692688

@@ -737,6 +733,7 @@ class Match3TitleScreen(Group):
737733

738734
def __init__(self, display_size):
739735
super().__init__()
736+
self.hidden = False
740737
self.display_size = display_size
741738
# background bitmap color
742739
bg_bmp = Bitmap(display_size[0] // 10, display_size[1] // 10, 1)

0 commit comments

Comments
 (0)