We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a604755 commit afb26bcCopy full SHA for afb26bc
1 file changed
lib/matplotlib/tests/test_typing.py
@@ -39,11 +39,11 @@ def test_cm_stub_matches_runtime_colormaps():
39
40
def test_typing_aliases_documented():
41
"""Every public type in typing.py is documented or intentionally undocumented."""
42
- typing_docs = Path(__file__).parent / "../../../doc/api/typing_api.rst"
+ typing_docs = Path(__file__).parents[3] / "doc/api/typing_api.rst"
43
if not typing_docs.exists():
44
pytest.skip("Documentation sources not available")
45
46
- typing_py_path = Path(__file__).parent.parent / "typing.py"
+ typing_py_path = Path(__file__).parents[1] / "typing.py"
47
assert typing_py_path.exists(), f"{typing_py_path} does not exist"
48
tree = ast.parse(typing_py_path.read_text(encoding="utf-8"))
49
0 commit comments