Skip to content

Commit

Permalink
Add __doc__ for replaced properties when logging is enabled. (#1107)
Browse files Browse the repository at this point in the history
When logging is enabled, docs for replaced properties didn't exist, and as a side-effect, doctests for the properties were not run.
  • Loading branch information
ueshin committed Dec 4, 2019
1 parent 054be21 commit 332c3b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions databricks/koalas/usage_logging/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ def wrapper(self):
finally:
_local.logging = False

wrapper.__doc__ = prop.__doc__

if prop.fset is not None:
wrapper = wrapper.setter(_wrap_function(class_name, prop.fset.__name__, prop.fset, logger))

Expand Down

0 comments on commit 332c3b0

Please sign in to comment.