Skip to content

Commit 674e734

Browse files
committed
drivers/display/lcd160cr: Use isinstance() for type checking.
Fixes linter warning E721, expanded in Ruff 823 to include direct comparison against built-in types.
1 parent 01ab7ba commit 674e734

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

micropython/drivers/display/lcd160cr/lcd160cr_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
def get_lcd(lcd):
8-
if type(lcd) is str:
8+
if isinstance(lcd, str):
99
lcd = lcd160cr.LCD160CR(lcd)
1010
return lcd
1111

0 commit comments

Comments
 (0)