diff --git a/pyproject.toml b/pyproject.toml index caecce4aa96a..da4336146d42 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -130,5 +130,11 @@ convention = "numpy" "galleries/users_explain/text/text_props.py" = ["E501"] [tool.mypy] -exclude = [".*/matplotlib/(sphinxext|backends|testing)", ".*/mpl_toolkits"] +exclude = [ + ".*/matplotlib/(sphinxext|backends|testing)", + ".*/mpl_toolkits", + # tinypages is used for testing the sphinx ext, + # stubtest will import and run, opening a figure if not excluded + ".*/tinypages", +] ignore_missing_imports = true