Files
openide/python/testData/inspections/PyCompatibilityInspection/variableAnnotations.py
lada.gaginaandintellij-monorepo-bot 75b1ecd244 [python] Cleanup supported/unsupported versions xmls
- Drop support for python 3.5 & 3.6 in compatibility inspection
- Fix and remove some outdated tests
- Remove xmls for long-unsupported python 2.6 & 3.5
- Regenerate versions.xml
- Remove mentions of OS-specific modules

GitOrigin-RevId: 3265dd1de8a4f7a41119e10c95bb705ca5845efe
2023-11-17 18:57:31 +00:00

9 lines
548 B
Python

class C:
x<warning descr="Python version 2.7 does not support variable annotations">: int</warning>
y<warning descr="Python version 2.7 does not support variable annotations">: None</warning> = 42
def m(self, d):
x<warning descr="Python version 2.7 does not support variable annotations">: List[bool]</warning>
d['foo']<warning descr="Python version 2.7 does not support variable annotations">: str</warning>
(d['bar'])<warning descr="Python version 2.7 does not support variable annotations">: float</warning>