Remove redundant code, fix incorrect docstring

This commit is contained in:
Darren Burns
2022-01-20 14:50:35 +00:00
parent 1e92b08e1b
commit 8b24a476f0
2 changed files with 1 additions and 4 deletions

View File

@@ -232,7 +232,7 @@ class Layout(ABC):
widget (Widget): The Widget in this layout you wish to know the Region of.
Raises:
KeyError: If the Widget is not contained in this Layout.
NoWidget: If the Widget is not contained in this Layout.
Returns:
Region: The Region of the Widget.

View File

@@ -15,9 +15,6 @@ from .layouts.factory import get_layout
from .reactive import Reactive, watch
from .widget import Widget
if TYPE_CHECKING:
pass
class LayoutProperty:
def __get__(self, obj: View, objtype: type[View] | None = None) -> str: