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 8097080 commit 1024edeCopy full SHA for 1024ede
tests/test_core.py
@@ -42,3 +42,16 @@ def plus_one_ng(numbers: list[int], dummy) -> list[int]:
42
checker.visit(ast.parse(code))
43
44
assert len(checker.errors) == 1
45
+
46
+ def test_KTH000_name_object_case(self):
47
+ # Fix `AttributeError: 'Name' object has no attribute 'value'`
48
+ code = dedent(
49
+ """\
50
+ def run(code: str) -> None:
51
+ ...
52
+ """
53
+ )
54
+ checker = ArgumentConcreteTypeHintChecker()
55
+ checker.visit(ast.parse(code))
56
57
+ assert len(checker.errors) == 0
0 commit comments