Skip to content
Snippets Groups Projects
Commit dfc22b49 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[dataformat] Fix docstrings

parent f5aad5a5
No related branches found
No related tags found
1 merge request!82Add pyproject.toml
......@@ -255,7 +255,9 @@ class DataFormat(object):
@property
def name(self):
"""Name of this object, either from the filename or composed from the hierarchy it belongs."""
"""Name of this object, either from the filename or composed from the hierarchy
it belongs.
"""
if self.parent and self._name is None:
return self.parent[0].name + "." + self.parent[1] + "_type"
else:
......@@ -353,7 +355,8 @@ class DataFormat(object):
@property
def description(self):
"Short description string, loaded from the JSON file if one was set"""
"""Short description string, loaded from the JSON file if one was set"""
return self.data.get("#description", None)
@description.setter
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment