File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments