![](https://secure.gravatar.com/avatar/05917fed26d7519fae8318f78d14592a.jpg?s=120&d=mm&r=g)
Aug. 11, 2021
7:02 a.m.
I think as long as there's a test case for something like ``` @dataclass class Node: global_node: ClassVar[Node | None] left: InitVar[Node | None] right: InitVar[None | None] ``` the bug https://bugs.python.org/issue33453 and the current implementation https://github.com/python/cpython/blob/bfc2d5a5c4550ab3a2fadeb9459b4bd948ff6... shows this is a tricky problem