Skip to content

Commit e6868d5

Browse files
Add regression test for pylint-dev#8554
1 parent 0d878dd commit e6868d5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/functional/i/invalid/invalid_unary_operand_type.py

+7
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,10 @@ class A:
4949
invert_instance = ~A() # [invalid-unary-operand-type]
5050
invert_module = ~collections # [invalid-unary-operand-type]
5151
invert_float = ~2.0 # [invalid-unary-operand-type]
52+
53+
54+
class NoArgumentSuper:
55+
def __init__(self):
56+
"""https://github.com/pylint-dev/pylint/issues/8554"""
57+
if not isinstance(super(), float):
58+
pass

0 commit comments

Comments
 (0)