Re:Python types have an expectations problem
by nickdrozd on Monday January 29, 2024 @12:00PM
(#39178712)
That's a recursive function, so to make it fully general a recursive type can be used:
This uses the `type` keyword introduced in 3.12. Unfortunately Mypy doesn't support it yet :( so this workaround can be used instead:
[ Parent
| on HN ]
There are no comments on this comment yet.