mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #7306 from tk0miya/7304_improve_warnigs_on_parse_failure
Fix #7304: py domain: Improve warning messages on parsing failure
This commit is contained in:
commit
1fea92ca42
@ -337,7 +337,8 @@ class PyObject(ObjectDescription):
|
|||||||
# it supports to represent optional arguments (ex. "func(foo [, bar])")
|
# it supports to represent optional arguments (ex. "func(foo [, bar])")
|
||||||
_pseudo_parse_arglist(signode, arglist)
|
_pseudo_parse_arglist(signode, arglist)
|
||||||
except NotImplementedError as exc:
|
except NotImplementedError as exc:
|
||||||
logger.warning("could not parse arglist (%r): %s", arglist, exc)
|
logger.warning("could not parse arglist (%r): %s", arglist, exc,
|
||||||
|
location=signode)
|
||||||
_pseudo_parse_arglist(signode, arglist)
|
_pseudo_parse_arglist(signode, arglist)
|
||||||
else:
|
else:
|
||||||
if self.needs_arglist():
|
if self.needs_arglist():
|
||||||
|
Loading…
Reference in New Issue
Block a user