]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
add attribute sphinx is breaking on
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 17 Sep 2021 21:27:46 +0000 (17:27 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 17 Sep 2021 21:27:46 +0000 (17:27 -0400)
the hybridmethod internal seems to be confusing
a recent version of sphinx autodoc, add attribute it's searching
for.

Change-Id: I27f671a51f857b62337cc2374bbc87383ae9710d

lib/sqlalchemy/util/langhelpers.py

index 8036ea3e214b601690ee008421a3a2c589c510dc..89ca4c1ebf6dffa043b2f9de47a20818a886a914 100644 (file)
@@ -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):