Improve some attribute/method names
This commit is contained in:
parent
1b69b19ec3
commit
c7bb3e3c11
4 changed files with 18 additions and 16 deletions
|
|
@ -15,12 +15,12 @@ class OFMThing(lt.Thing):
|
|||
|
||||
_data_dir: Optional[str] = None
|
||||
|
||||
_show_in_gallery: bool = False
|
||||
_show_data_in_gallery: bool = False
|
||||
|
||||
@property
|
||||
def show_in_gallery(self) -> bool:
|
||||
def show_data_in_gallery(self) -> bool:
|
||||
"""Whether to show in the Gallery."""
|
||||
return self._show_in_gallery
|
||||
return self._show_data_in_gallery
|
||||
|
||||
def __enter__(self) -> Self:
|
||||
"""Set the data directory when the Thing is entered."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue