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 ed8f58a commit 0447abdCopy full SHA for 0447abd
tests/test_core.py
@@ -112,3 +112,15 @@ def func_parameter_type_hint_attribute_case(tree: ast.AST) -> None:
112
checker.visit(ast.parse(code))
113
114
assert len(checker.errors) == 0
115
+
116
+ def test_not_raise_error_to_function_annotation(self) -> None:
117
+ code = dedent(
118
+ """\
119
+ def func_parameter_annotation_case(spam: "いえーい!みんな見てる?") -> None:
120
+ ...
121
+ """
122
+ )
123
+ checker = ArgumentConcreteTypeHintChecker()
124
+ checker.visit(ast.parse(code))
125
126
+ assert len(checker.errors) == 0
0 commit comments