Skip to content

Commit c43d5bc

Browse files
committed
Fix test on Python 3.10
1 parent 97830a7 commit c43d5bc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_sphinx_autodoc_typehints.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,6 +1133,9 @@ def test_wrong_module_path(app: SphinxTestApp, status: StringIO, warning: String
11331133
app.config.master_doc = "wrong_module_path" # create flag
11341134
app.config.default_role = "literal"
11351135
app.config.nitpicky = True
1136+
app.config.nitpick_ignore = {
1137+
("py:data", "typing.Optional")
1138+
}
11361139

11371140
def fixup_module_name(mod: str) -> str:
11381141
if not mod.startswith("wrong_module_path"):

0 commit comments

Comments
 (0)