4 ms·
Your solution is fine. Pyright can infer the return types, so you don't need to annotate the return type. In fact this is describe in the solution https://gith
by laike9m 3y ago
Your solution is fine. Pyright can infer the return types, so you don't need to annotate the return type.
In fact this is describe in the solution
https://github.com/laike9m/Python-Type-Challenges/blob/main/challenges/advanced-generic-class/solution.py#L23 https://github.com/laike9m/Python-Type-Challenges/blob/main/...