Debian Codegraph @

tests/data/cases/target_version_flag.py

raw
1 # flags: --minimum-version=3.12 --target-version=py312
2 # this is invalid in versions below py312
3 class ClassA[T: str]:
4 def method1(self) -> T:
5 ...
6
7 # output
8 # this is invalid in versions below py312
9 class ClassA[T: str]:
10 def method1(self) -> T: ...