Skip to content

Commit c604b5d

Browse files
committed
more linting
1 parent 1e76acf commit c604b5d

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

Metro/Metro_RP2350_Chips_Challenge/dialog.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -230,21 +230,6 @@ def _draw_background(
230230
background_bitmap = add_border(background_bitmap, border_color_ul, border_color_br)
231231
bitmaptools.blit(buffer, background_bitmap, x_position, y_position)
232232

233-
def _calculate_dialog_size(self, text, font, width, height, padding):
234-
# Calculate the size of the dialog based on the text and font
235-
if text is not None:
236-
text_width = text_bounding_box(text, font)[2]
237-
if width is None:
238-
width = text_width + padding["right"] + padding["left"]
239-
if height is None:
240-
height = text_bounding_box(text, font)[3] + padding["top"] + padding["bottom"]
241-
else:
242-
if width is None:
243-
width = 0
244-
if height is None:
245-
height = 0
246-
return width, height
247-
248233
def display_simple(
249234
self,
250235
text, # the text to display in the dialog

Metro/Metro_RP2350_Chips_Challenge/level.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def _process_map_data(self, map_data, layer):
108108
current_byte += 1
109109

110110
def load(self, level_number):
111-
#pylint: disable=too-many-branches
111+
#pylint: disable=too-many-branches, too-many-locals
112112
# Reset the data prior to loading
113113
self._reset_data()
114114
# Read the file and fill in the variables

0 commit comments

Comments
 (0)