summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/util
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2020-04-11 13:46:56 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2020-04-11 13:46:56 -0400
commit43bcb0de1ecc1dc2abd7e7c3eb0c39f3eab9adc0 (patch)
tree34cd5fe4d3b8471747de8dfb4c5ebbe5e0ea679f /lib/sqlalchemy/util
parent6e1cbe426479438f1fc12ce6ae9424cf5d191ddf (diff)
downloadsqlalchemy-43bcb0de1ecc1dc2abd7e7c3eb0c39f3eab9adc0.tar.gz
Fix almost all read-level sphinx warnings
There are some related to changelog that I can't figure out and are likely due to something in the changelog extension. also one thing with a "collection" I can't figure out. Change-Id: I0a9e6f4291c3589aa19a4abcb9245cd22a266fe0
Diffstat (limited to 'lib/sqlalchemy/util')
-rw-r--r--lib/sqlalchemy/util/langhelpers.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/sqlalchemy/util/langhelpers.py b/lib/sqlalchemy/util/langhelpers.py
index 7e9906028..bd670f2cc 100644
--- a/lib/sqlalchemy/util/langhelpers.py
+++ b/lib/sqlalchemy/util/langhelpers.py
@@ -223,7 +223,7 @@ def %(name)s(%(args)s):
"Inherited from :func:`sqlalchemy%s`; this constructor "
"creates a :class:`%s` object"
% (linked_to_location, class_location),
- 0,
+ 1,
)
decorated.__doc__ = linked_to_doc
else:
@@ -1637,6 +1637,8 @@ def _dedent_docstring(text):
def inject_docstring_text(doctext, injecttext, pos):
doctext = _dedent_docstring(doctext or "")
lines = doctext.split("\n")
+ if len(lines) == 1:
+ lines.append("")
injectlines = textwrap.dedent(injecttext).split("\n")
if injectlines[0]:
injectlines.insert(0, "")