summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2021-09-17 17:27:46 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2021-09-17 17:29:53 -0400
commit665c69f145806196f14c5f6b79251610da8f0177 (patch)
treeec216c584da1b4c704bdf7fb31b3910d6b1cf832
parent46db1968b8dc00acd1232c3dd8b87b857a76d176 (diff)
downloadsqlalchemy-665c69f145806196f14c5f6b79251610da8f0177.tar.gz
add attribute sphinx is breaking on
the hybridmethod internal seems to be confusing a recent version of sphinx autodoc, add attribute it's searching for. Change-Id: I27f671a51f857b62337cc2374bbc87383ae9710d (cherry picked from commit c50183274728544e40e7da4fd35cf240da5df656) (cherry picked from commit 6919a48337b3788e02389e738b5fb8a8b2d36f19)
-rw-r--r--lib/sqlalchemy/util/langhelpers.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sqlalchemy/util/langhelpers.py b/lib/sqlalchemy/util/langhelpers.py
index 3359f84c9..76c96c520 100644
--- a/lib/sqlalchemy/util/langhelpers.py
+++ b/lib/sqlalchemy/util/langhelpers.py
@@ -1258,7 +1258,8 @@ class hybridmethod(object):
"""Decorate a function as cls- or instance- level."""
def __init__(self, func):
- self.func = func
+ self.func = self.__func__ = func
+ self.clslevel = func
def __get__(self, instance, owner):
if instance is None: