Skip to content

Commit 1c7aa90

Browse files
committed
Added missing docstrings for methods in visibility_status
1 parent c93ba77 commit 1c7aa90

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

in2lambda/api/visibility_status.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ class VisibilityStatus(Enum):
99
OPEN_WITH_WARNINGS = "OPEN_WITH_WARNINGS"
1010

1111
def __str__(self):
12+
"""Return the string representation of the visibility status."""
1213
return self.value
1314

1415
def __repr__(self) -> str:
@@ -20,10 +21,12 @@ class VisibilityController:
2021
"""Controller for managing visibility status with easy-to-use methods."""
2122

2223
def __init__(self, initial_status: VisibilityStatus = VisibilityStatus.OPEN):
24+
"""Initialize the VisibilityController with a specific status."""
2325
self._status = initial_status
2426

2527
@property
2628
def status(self) -> VisibilityStatus:
29+
"""Return the current visibility status."""
2730
return self._status
2831

2932
def to_open(self):
@@ -60,6 +63,7 @@ def to_open_with_warnings(self):
6063
self._status = VisibilityStatus.OPEN_WITH_WARNINGS
6164

6265
def __str__(self):
66+
"""Return the string representation of the visibility status."""
6367
return str(self._status)
6468

6569
def __repr__(self) -> str:

0 commit comments

Comments
 (0)