Skip to content

Commit e27f444

Browse files
committed
Merge branch 'main' into pathdistribution-type-hint
2 parents e27d079 + ff9451d commit e27f444

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

docs/conf.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,22 @@
2727

2828
# Be strict about any broken references:
2929
nitpicky = True
30+
31+
# Support intersphinx links
32+
extensions += [
33+
'sphinx.ext.intersphinx',
34+
]
35+
intersphinx_mapping = {
36+
'python': ('https://docs.python.org/3', None),
37+
'importlib_resources': (
38+
'https://importlib-resources.readthedocs.io/en/latest/',
39+
None,
40+
),
41+
}
42+
43+
# Workaround for #316
44+
nitpick_ignore = [
45+
('py:class', 'importlib_metadata.EntryPoints'),
46+
('py:class', 'importlib_metadata.SelectableGroups'),
47+
('py:class', 'importlib_metadata._meta._T'),
48+
]

importlib_metadata/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ def requires(distribution_name):
880880
Return a list of requirements for the named package.
881881
882882
:return: An iterator of requirements, suitable for
883-
packaging.requirement.Requirement.
883+
packaging.requirement.Requirement.
884884
"""
885885
return distribution(distribution_name).requires
886886

0 commit comments

Comments
 (0)