Feature
Support Python version and other checks that can be evaluated statically in bodies of dataclasses, named tuples, and other cases discussed in python/typing-council#58.
Example that should work:
import sys
from typing import NamedTuple
class NT(NamedTuple):
x: int
if sys.version_info >= (3, 12):
y: str
Feature
Support Python version and other checks that can be evaluated statically in bodies of dataclasses, named tuples, and other cases discussed in python/typing-council#58.
Example that should work: