mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
typing fix
This commit is contained in:
@@ -47,6 +47,7 @@ class Layout(ABC):
|
||||
) -> int:
|
||||
width: int | None = None
|
||||
for child in parent.displayed_children:
|
||||
assert isinstance(child, Widget)
|
||||
if not child.is_container:
|
||||
child_width = child.get_content_width(container_size, viewport_size)
|
||||
width = child_width if width is None else max(width, child_width)
|
||||
|
||||
@@ -71,7 +71,7 @@ class ScalarProperty:
|
||||
self.name = name
|
||||
|
||||
def __get__(
|
||||
self, obj: StylesBase, objtype: type[Styles] | None = None
|
||||
self, obj: StylesBase, objtype: type[StylesBase] | None = None
|
||||
) -> Scalar | None:
|
||||
"""Get the scalar property
|
||||
|
||||
|
||||
Reference in New Issue
Block a user