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:
Felix Ingram
2022-04-25 11:21:56 +01:00
committed by GitHub
parent 6db5c6edfb
commit 5315df45f0

View File

@@ -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):