Need some type hint help: ```_GoalSubsystemT = Typ...
# development
b
Need some type hint help:
Copy code
_GoalSubsystemT = TypeVar("_GoalSubsystemT", bound=GoalSubsystem)

async def _get_subpartitions(
    subsystem: type[_GoalSubsystemT],
): ...

...
    _get_subpartitions(lint_subsystem)

# Note: `LintSubsystem` is `class LintSubsystem(GoalSubsystem):`
yields
Copy code
error: Argument 1 to "_get_subpartitions" has incompatible type "LintSubsystem"; expected "Type[<nothing>]"  [arg-type]
https://mypy.readthedocs.io/en/stable/kinds_of_types.html#the-type-of-class-objects makes me think what I'm doing is OK
1
a
👀
b
The
<nothing>
is what kills me 😐
a
what’s the value of
lint_subsystem
?
I don’t see where it’s set
b
`LintSubsystem`(...). It's a param of a rule
posting PR soon
a
the mypy thing says that you have an instance of
LintSubsystem
, rather than the type object itself
b
DOH
🙏 Thank you
a
Not a problem. Please consider taking a break and getting one of your morning bootstrap beverages of choice, or some nice fresh air
b
I was actually racing the clock because I got a Drs visit to be at 😅