Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 674e734

Browse files
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) isstr:
8+
if isinstance(lcd, str):
99
lcd = lcd160cr.LCD160CR(lcd)
1010
return lcd
1111

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /