From 5a8fe2436721adac69a7e3c4887adc7a61517629 Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Mon, 29 May 2023 13:44:11 +0100 Subject: [PATCH] Fix the dock type warning See #2494. --- src/textual/css/_style_properties.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textual/css/_style_properties.py b/src/textual/css/_style_properties.py index a69d94207..45ba9c423 100644 --- a/src/textual/css/_style_properties.py +++ b/src/textual/css/_style_properties.py @@ -570,7 +570,7 @@ class DockProperty: """ return cast(DockEdge, obj.get_rule("dock", "")) - def __set__(self, obj: Styles, dock_name: str | None): + def __set__(self, obj: StylesBase, dock_name: str | None): """Set the Dock property. Args: