Skip to content

Commit

Permalink
Merge pull request RobotLocomotion#9618 from EricCousineau-TRI/featur…
Browse files Browse the repository at this point in the history
…e/py_doc_fix_20181008

pydrake: Ensure module docstring is used, rather than ModuleShim docstring
  • Loading branch information
EricCousineau-TRI authored Oct 8, 2018
2 parents be65f29 + 3ec5eff commit cd2fa2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bindings/pydrake/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
"""Python bindings for Drake.
"""

from __future__ import absolute_import, division, print_function
from os.path import abspath
from platform import python_version_tuple
Expand Down
1 change: 1 addition & 0 deletions bindings/pydrake/util/deprecation.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def __init__(self, orig_module, handler):
# https://stackoverflow.com/a/16237698/7829525
object.__setattr__(self, '_orig_module', orig_module)
object.__setattr__(self, '_handler', handler)
object.__setattr__(self, '__doc__', orig_module.__doc__)

def __getattr__(self, name):
# Use the original module if possible.
Expand Down

0 comments on commit cd2fa2e

Please sign in to comment.