Skip to content

Commit ed452c2

Browse files
committed
fixup, change adjust objtypes method type
1 parent cc13794 commit ed452c2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

sphinx/domains/python/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,12 @@ def _make_module_refnode(self, builder: Builder, fromdocname: str, name: str,
824824
return make_refnode(builder, fromdocname, module.docname, module.node_id,
825825
contnode, title)
826826

827-
def _intersphinx_adjust_object_types(self, objtypes: list[str]) -> None:
827+
def _intersphinx_adjust_object_types(self, env: BuildEnvironment,
828+
store: Any,
829+
typ: str, target: str,
830+
disabled_object_types: list[str],
831+
node: pending_xref, contnode: Element,
832+
objtypes: list[str]) -> None:
828833
# we adjust the object types for backwards compatibility
829834
if 'attribute' in objtypes:
830835
# Since Sphinx-2.1, properties are stored as py:method

0 commit comments

Comments
 (0)