Skip to content

Instantly share code, notes, and snippets.

@shauns
Created April 7, 2015 09:14
Show Gist options
  • Save shauns/d4cb3ef58dff45e34856 to your computer and use it in GitHub Desktop.
Save shauns/d4cb3ef58dff45e34856 to your computer and use it in GitHub Desktop.
Diff to remove SQLAlchemy Sphinx errors
diff --git a/lib/sqlalchemy/util/langhelpers.py b/lib/sqlalchemy/util/langhelpers.py
index 8d6fe5a..e064b84 100644
--- a/lib/sqlalchemy/util/langhelpers.py
+++ b/lib/sqlalchemy/util/langhelpers.py
@@ -159,6 +159,9 @@ def %(name)s(%(args)s):
fn.__func__.__doc__ = doc
else:
fn.__doc__ = doc
+
+ decorated.__module__ = fn.__module__
+
return decorated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment