We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01ab7ba commit 674e734Copy full SHA for 674e734
micropython/drivers/display/lcd160cr/lcd160cr_test.py
@@ -5,7 +5,7 @@
5
6
7
def get_lcd(lcd):
8
- if type(lcd) is str:
+ if isinstance(lcd, str):
9
lcd = lcd160cr.LCD160CR(lcd)
10
return lcd
11
0 commit comments