Skip to content

Commit 7c1d1f4

Browse files
committed
update tkinter_options_test.py to use Optional cnf annotation
1 parent 392763e commit 7c1d1f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/tkinter_options_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def is_configure_method_with_options_as_kwargs(node: ast.stmt) -> bool:
278278
assert cnf.arg == "cnf"
279279
assert cnf.annotation is not None
280280

281-
[expected_cnf_annotation] = ast.parse("Dict[str, Any]").body
281+
[expected_cnf_annotation] = ast.parse("Optional[Dict[str, Any]]").body
282282
assert isinstance(expected_cnf_annotation, ast.Expr)
283283
return ast.dump(cnf.annotation) == ast.dump(expected_cnf_annotation.value)
284284

0 commit comments

Comments
 (0)