Skip to content

Commit 34c2826

Browse files
committed
Report correct module in funcs decorated by requires_auth.
1 parent 7162ef2 commit 34c2826

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

github2/core.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ def wrapper(self, *args, **kwargs):
116116
wrapped.__orig_func__ = f
117117
wrapped.__name__ = f.__name__
118118
wrapped.__doc__ = f.__doc__ + """\n.. warning:: Requires authentication"""
119+
wrapped.__module__ = f.__module__
119120
wrapped.requires_auth = True
120121
return wrapped
121122

0 commit comments

Comments
 (0)