mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Remove redundant code, fix incorrect docstring
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user