File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ def create_object_xref(
178178 "reftarget" : full_name ,
179179 }
180180 ref = addnodes .pending_xref (full_name , ** options )
181- name = full_name .split ("::" )[- 1 ]
181+ name = full_name .rsplit ("::" , maxsplit = 1 )[- 1 ]
182182 ref += nodes .literal (name , name )
183183
184184 return ref
@@ -207,7 +207,7 @@ def create_source_xref(
207207 "classes" : classes or [],
208208 }
209209 ref = addnodes .pending_xref (full_name , ** options )
210- text = full_name .split ("::" )[- 1 ] if text is None else text
210+ text = full_name .rsplit ("::" , maxsplit = 1 )[- 1 ] if text is None else text
211211 ref += nodes .literal (text , text )
212212
213213 return ref
Original file line number Diff line number Diff line change 1- from __future__ import annotations
2-
31__version__ : str
42
53def analyze_crate (crate_path : str , cache_path : str ) -> AnalysisResult :
You can’t perform that action at this time.
0 commit comments