Skip to content
Merged
5 changes: 3 additions & 2 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
import pathlib as std_pathlib
import sys

import pytest

if sys.version_info < (3, 10):
import pathlib2 as pathlib # pragma: nocover
else:
import pathlib # pragma: nocover
pathlib = std_pathlib # pragma: nocover


@pytest.fixture
def tmp_path(tmp_path):
def tmp_path(tmp_path: std_pathlib.Path) -> pathlib.Path:
"""
Override tmp_path to wrap in a more modern interface.
"""
Expand Down
9 changes: 9 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,12 @@
# local

extensions += ['jaraco.tidelift']
nitpick_ignore += [
("py:class", "FileDescriptorOrPath"),
("py:class", "_GetItemIterable"),
("py:class", "_SupportsDecode"),
("py:class", "_TranslateTable"),
("py:class", "itertools.chain"),
("py:class", "jaraco.text._SupportsDecode"),
("py:class", "jaraco.text._T"),
]
Loading
Loading