mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-18 14:29:40 +08:00
Make the failing doctest pass
This commit is contained in:
+4
-1
@@ -58,7 +58,10 @@ def search_param_in_docstr(docstr, param_str):
|
|||||||
for pattern in patterns:
|
for pattern in patterns:
|
||||||
match = pattern.search(docstr)
|
match = pattern.search(docstr)
|
||||||
if match:
|
if match:
|
||||||
return match.group(1)
|
type_str = match.group(1)
|
||||||
|
if type_str.startswith(':class:'):
|
||||||
|
type_str = type_str[len(':class:'):].strip('`')
|
||||||
|
return type_str
|
||||||
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user