The following issues were found
tests/basics/parser.py
2 issues
Line: 7
Column: 5
compile
except NameError:
print("SKIP")
raise SystemExit
# completely empty string
# uPy and CPy differ for this case
#try:
# compile("", "stdin", "single")
Reported by Pylint.
Line: 1
Column: 1
# parser tests
try:
compile
except NameError:
print("SKIP")
raise SystemExit
# completely empty string
Reported by Pylint.
examples/hwapi/hwconfig_pyboard.py
2 issues
Line: 1
Column: 1
from machine import Pin, Signal
# Red LED on pin LED_RED also kown as A13
LED = Signal("LED_RED", Pin.OUT)
# Green LED on pin LED_GREEN also known as A14
LED2 = Signal("LED_GREEN", Pin.OUT)
# Yellow LED on pin LED_YELLOW also known as A15
Reported by Pylint.
Line: 1
Column: 1
from machine import Pin, Signal
# Red LED on pin LED_RED also kown as A13
LED = Signal("LED_RED", Pin.OUT)
# Green LED on pin LED_GREEN also known as A14
LED2 = Signal("LED_GREEN", Pin.OUT)
# Yellow LED on pin LED_YELLOW also known as A15
Reported by Pylint.
examples/hwapi/hwconfig_esp8266_esp12.py
2 issues
Line: 1
Column: 1
from machine import Pin, Signal
# ESP12 module as used by many boards
# Blue LED on pin 2, active low (inverted)
LED = Signal(2, Pin.OUT, invert=True)
Reported by Pylint.
Line: 1
Column: 1
from machine import Pin, Signal
# ESP12 module as used by many boards
# Blue LED on pin 2, active low (inverted)
LED = Signal(2, Pin.OUT, invert=True)
Reported by Pylint.
tests/cpydiff/core_function_userattr.py
2 issues
Line: 9
Column: 1
"""
def f():
pass
f.x = 0
print(f.x)
Reported by Pylint.
Line: 9
Column: 1
"""
def f():
pass
f.x = 0
print(f.x)
Reported by Pylint.
tests/basics/0prelim.py
2 issues
Line: 1
Column: 1
# all tests need print to work! make sure it does work
print(1)
print('abc')
Reported by Pylint.
Line: 1
Column: 1
# all tests need print to work! make sure it does work
print(1)
print('abc')
Reported by Pylint.
tests/cpydiff/core_function_moduleattr.py
2 issues
Line: 9
Column: 1
"""
def f():
pass
print(f.__module__)
Reported by Pylint.
Line: 9
Column: 1
"""
def f():
pass
print(f.__module__)
Reported by Pylint.
tests/cpydiff/core_function_argcount.py
2 issues
Line: 9
Column: 8
"""
try:
[].append()
except Exception as e:
print(e)
Reported by Pylint.
Line: 9
Column: 1
"""
try:
[].append()
except Exception as e:
print(e)
Reported by Pylint.
tests/cpydiff/core_fstring_repr.py
2 issues
Line: 9
Column: 1
"""
class X:
def __repr__(self):
return "repr"
def __str__(self):
return "str"
Reported by Pylint.
Line: 9
Column: 1
"""
class X:
def __repr__(self):
return "repr"
def __str__(self):
return "str"
Reported by Pylint.
tests/cpydiff/core_fstring_raw.py
2 issues
Line: 8
Column: 1
workaround: Unknown
"""
rf"hello"
Reported by Pylint.
Line: 8
Column: 1
workaround: Unknown
"""
rf"hello"
Reported by Pylint.
tests/cpydiff/core_fstring_parser.py
2 issues
Line: 8
Column: 1
workaround: Only use simple expressions inside f-strings
"""
f'{"hello {} world"}'
f"{repr({})}"
Reported by Pylint.
Line: 9
Column: 1
"""
f'{"hello {} world"}'
f"{repr({})}"
Reported by Pylint.