From 5315df45f01df4f2dc6fb2b1b7348d630c6a5227 Mon Sep 17 00:00:00 2001 From: Felix Ingram Date: Mon, 25 Apr 2022 11:21:56 +0100 Subject: [PATCH] Update _style_properties.py Uses the string version of the argument to `cast` to work with python 3.8 and lower. --- 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 ed424b012..12a76b202 100644 --- a/src/textual/css/_style_properties.py +++ b/src/textual/css/_style_properties.py @@ -642,7 +642,7 @@ class NameListProperty: def __get__( self, obj: StylesBase, objtype: type[StylesBase] | None = None ) -> tuple[str, ...]: - return cast(tuple[str, ...], obj.get_rule(self.name, ())) + return cast("tuple[str, ...]", obj.get_rule(self.name, ())) def __set__(self, obj: StylesBase, names: str | tuple[str] | None = None):