mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Update _style_properties.py
Uses the string version of the argument to `cast` to work with python 3.8 and lower.
This commit is contained in:
@@ -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):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user