Skip to content

Commit d4d9f10

Browse files
No longer allow . reference from functions/methods
1 parent fee4775 commit d4d9f10

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/mkdocstrings_handlers/python_xref/crossref.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,9 @@ def _process_current_specifier(self, obj: Object, ref_match: re.Match) -> Option
200200
if ref_match.group("current"):
201201
if obj.is_function:
202202
self._error(
203-
f"Deprecated use of '.' in function {obj.canonical_path} changed to '..'",
203+
f"Cannot use '.' in function {obj.canonical_path}",
204204
just_warn=True
205205
)
206-
rel_obj = obj.parent
207206
else:
208207
rel_obj = obj
209208
return rel_obj

0 commit comments

Comments
 (0)