Skip to content

Commit

Permalink
Attach docstrings to newly created highlevel arrays (#330)
Browse files Browse the repository at this point in the history
  • Loading branch information
nsmith- authored Jul 12, 2020
1 parent c4c656a commit 5f1a068
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/awkward1/highlevel.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,9 @@ def __init__(self, data, behavior=None, with_name=None, check_valid=False):

self.layout = layout
self.behavior = behavior
docstr = self.layout.purelist_parameter("__doc__")
if isinstance(docstr, str):
self.__doc__ = docstr
if check_valid:
awkward1.operations.describe.validity_error(self, exception=True)

Expand Down

0 comments on commit 5f1a068

Please sign in to comment.