Best Practice for inference
Hi here is my problem:
vs
In the first code, the inference for ModelName doesn't work as expected, but it feels more natural.
In the second code, the inference works fine, but it forces me to repeat the type P everywhere, which is not ideal.
Thank you for reading
1 Reply
Anyone ?
This might be the solution, but it feels a bit off