Type-tidy the radio set button query

This commit is contained in:
Dave Pearson
2023-02-23 13:34:08 +00:00
parent affb3b696f
commit 652d449643

View File

@@ -59,7 +59,7 @@ class RadioSet(Container):
@property
def _buttons(self) -> DOMQuery[RadioButton]:
"""The buttons within the set."""
return self.query(RadioButton)
return cast(DOMQuery[RadioButton], self.query(RadioButton))
class Changed(Message, bubble=True):
"""Posted when the pressed button in the set changes."""