Currently, upper bounds of type parameters must be named types. Literal types would be useful to track whether a model has been fitted, for example. Generally, our implementation should be able to handle any upper bound, so there's no need for this restriction.
Is your feature request related to a problem?
Currently, upper bounds of type parameters must be named types. Literal types would be useful to track whether a model has been fitted, for example. Generally, our implementation should be able to handle any upper bound, so there's no need for this restriction.
Desired solution
Remove the check.
Possible alternatives (optional)
No response
Screenshots (optional)
No response
Additional Context (optional)
No response