summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/util/langhelpers.py
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:27:46 -0400
commitc50183274728544e40e7da4fd35cf240da5df656 (patch)
tree6440f7d0ce3a74f6f1df20b6657008e5f89f4d33 /lib/sqlalchemy/util/langhelpers.py
parent204fe7ea206a1b0ab4ae248006f99afd15fa7f72 (diff)
downloadsqlalchemy-c50183274728544e40e7da4fd35cf240da5df656.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
Diffstat (limited to 'lib/sqlalchemy/util/langhelpers.py')
-rw-r--r--lib/sqlalchemy/util/langhelpers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/util/langhelpers.py b/lib/sqlalchemy/util/langhelpers.py
index 8036ea3e2..89ca4c1eb 100644
--- a/lib/sqlalchemy/util/langhelpers.py
+++ b/lib/sqlalchemy/util/langhelpers.py
@@ -1453,7 +1453,7 @@ 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):