I had closed #1367945514699718697 but the solution I was using is not working as expected.
I have
type RuleType = Figure | str | bool | int | float | list[RuleType]
class Rule:
def __init__(self, rule_type: RuleType):
...
But when I use this:
Rule(
rule_type=bool
)
I get a warning from my IDE: Expected type 'Figure | str | bool | int | float | list', got 'Type[bool]' instead