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 3b45c1a commit cbeab82Copy full SHA for cbeab82
tests/tkinter_options_test.py
@@ -278,7 +278,7 @@ def is_configure_method_with_options_as_kwargs(node: ast.stmt) -> bool:
278
assert cnf.arg == "cnf"
279
assert cnf.annotation is not None
280
281
- [expected_cnf_annotation] = ast.parse("Dict[str, Any]").body
+ [expected_cnf_annotation] = ast.parse("Optional[Dict[str, Any]]").body
282
assert isinstance(expected_cnf_annotation, ast.Expr)
283
return ast.dump(cnf.annotation) == ast.dump(expected_cnf_annotation.value)
284
0 commit comments