Skip to content

Commit 630fff0

Browse files
committed
Strict type checking and py.typed
1 parent 10d49b8 commit 630fff0

13 files changed

Lines changed: 167 additions & 75 deletions

File tree

conftest.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1+
import pathlib as std_pathlib
12
import sys
23

34
import pytest
45

56
if sys.version_info < (3, 10):
67
import pathlib2 as pathlib # pragma: nocover
78
else:
8-
import pathlib # pragma: nocover
9+
pathlib = std_pathlib # pragma: nocover
910

1011

1112
@pytest.fixture
12-
def tmp_path(tmp_path):
13+
def tmp_path(tmp_path: std_pathlib.Path) -> pathlib.Path:
1314
"""
1415
Override tmp_path to wrap in a more modern interface.
1516
"""

docs/conf.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,12 @@
5656
# local
5757

5858
extensions += ['jaraco.tidelift']
59+
nitpick_ignore += [
60+
("py:class", "FileDescriptorOrPath"),
61+
("py:class", "_GetItemIterable"),
62+
("py:class", "_SupportsDecode"),
63+
("py:class", "_TranslateTable"),
64+
("py:class", "itertools.chain"),
65+
("py:class", "jaraco.text._SupportsDecode"),
66+
("py:class", "jaraco.text._T"),
67+
]

0 commit comments

Comments
 (0)