Will it be possible to remove Callable from the parents of TorchDistributionMixin (introduced in version 1.9)?
I'd like to make a generic subclass like
class MyDist(TorchDistribution, Generic[_T]): ...
and use it as MyDist[SomeConcreteType], but this fails because Callable enforces a specific usage pattern MyDist[[arg_type, ...], return_type].
On the other hand, introspection tools (in my experience) and the built-in callable already pick up the "callability" from the __call__ method.
Will it be possible to remove
Callablefrom the parents ofTorchDistributionMixin(introduced in version 1.9)?I'd like to make a generic subclass like
and use it as
MyDist[SomeConcreteType], but this fails becauseCallableenforces a specific usage patternMyDist[[arg_type, ...], return_type].On the other hand, introspection tools (in my experience) and the built-in
callablealready pick up the "callability" from the__call__method.