textual
textual copied to clipboard
[CSS Branch] TypeError in _style_properties.py
On line 645:
return cast(tuple[str, ...], obj.get_rule(self.name, ()))
the call to cast raises a TypeError on python 3.8 and lower. Bumping to python 3.9 removes the error. Raising the issue as pyproject.toml has python 3.7 or newer specified.
You can simply stringify the cast argument:
return cast('tuple[str, ...]', obj.get_rule(self.name, ()))
Feel free to open up a PR doing this @lllama
Done in #415
https://github.com/Textualize/textual/wiki/Sorry-we-closed-your-issue
Did we solve your problem?
Glad we could help!