mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
[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
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a653f3cd1f
commit
75b1ecd244
+1
-1
@@ -1,4 +1,4 @@
|
||||
class A:
|
||||
pass
|
||||
|
||||
assert isinstance(A(), <warning descr="Python versions 2.7, 3.5, 3.6, 3.7, 3.8, 3.9 do not allow writing union types as X | Y"><caret>int | str</warning>)
|
||||
assert isinstance(A(), <warning descr="Python versions 2.7, 3.7, 3.8, 3.9 do not allow writing union types as X | Y"><caret>int | str</warning>)
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
class A:
|
||||
pass
|
||||
|
||||
assert issubclass(A, <warning descr="Python versions 2.7, 3.5, 3.6, 3.7, 3.8, 3.9 do not allow writing union types as X | Y"><caret>int | str</warning>)
|
||||
assert issubclass(A, <warning descr="Python versions 2.7, 3.7, 3.8, 3.9 do not allow writing union types as X | Y"><caret>int | str</warning>)
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
from typing import Union
|
||||
|
||||
|
||||
def foo() -> <warning descr="Python versions 2.7, 3.5, 3.6, 3.7, 3.8, 3.9 do not allow writing union types as X | Y"><caret>int | Union[str, bool]</warning>:
|
||||
def foo() -> <warning descr="Python versions 2.7, 3.7, 3.8, 3.9 do not allow writing union types as X | Y"><caret>int | Union[str, bool]</warning>:
|
||||
return 42
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
from typing import Union
|
||||
|
||||
|
||||
a<warning descr="Python versions 2.7, 3.5 do not support variable annotations">: <warning descr="Python versions 2.7, 3.5, 3.6, 3.7, 3.8, 3.9 do not allow writing union types as X | Y"><caret>int | Union[str, bool]</warning></warning> = 42
|
||||
a<warning descr="Python version 2.7 does not support variable annotations">: <warning descr="Python versions 2.7, 3.7, 3.8, 3.9 do not allow writing union types as X | Y"><caret>int | Union[str, bool]</warning></warning> = 42
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
class A:
|
||||
pass
|
||||
|
||||
assert isinstance(A(), <warning descr="Python versions 2.7, 3.5, 3.6, 3.7, 3.8, 3.9 do not allow writing union types as X | Y"><caret>int | str</warning>)
|
||||
assert isinstance(A(), <warning descr="Python versions 2.7, 3.7, 3.8, 3.9 do not allow writing union types as X | Y"><caret>int | str</warning>)
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
class A:
|
||||
pass
|
||||
|
||||
assert issubclass(A, <warning descr="Python versions 2.7, 3.5, 3.6, 3.7, 3.8, 3.9 do not allow writing union types as X | Y"><caret>int | str</warning>)
|
||||
assert issubclass(A, <warning descr="Python versions 2.7, 3.7, 3.8, 3.9 do not allow writing union types as X | Y"><caret>int | str</warning>)
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
def foo() -> <warning descr="Python versions 2.7, 3.5, 3.6, 3.7, 3.8, 3.9 do not allow writing union types as X | Y"><caret>int | str</warning>:
|
||||
def foo() -> <warning descr="Python versions 2.7, 3.7, 3.8, 3.9 do not allow writing union types as X | Y"><caret>int | str</warning>:
|
||||
return 42
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
def foo() -> <warning descr="Python versions 2.7, 3.5, 3.6, 3.7, 3.8, 3.9 do not allow writing union types as X | Y"><caret>int | str | list[dict[int, str]] | set[list[int]] | dict[str, int]</warning>:
|
||||
def foo() -> <warning descr="Python versions 2.7, 3.7, 3.8, 3.9 do not allow writing union types as X | Y"><caret>int | str | list[dict[int, str]] | set[list[int]] | dict[str, int]</warning>:
|
||||
return 42
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
def foo() -> <warning descr="Python versions 2.7, 3.5, 3.6, 3.7, 3.8, 3.9 do not allow writing union types as X | Y"><caret>int | None | str</warning>:
|
||||
def foo() -> <warning descr="Python versions 2.7, 3.7, 3.8, 3.9 do not allow writing union types as X | Y"><caret>int | None | str</warning>:
|
||||
return 42
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
def foo() -> <warning descr="Python versions 2.7, 3.5, 3.6, 3.7, 3.8, 3.9 do not allow writing union types as X | Y">int<caret> | None</warning>:
|
||||
def foo() -> <warning descr="Python versions 2.7, 3.7, 3.8, 3.9 do not allow writing union types as X | Y">int<caret> | None</warning>:
|
||||
return 42
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
def foo() -> <warning descr="Python versions 2.7, 3.5, 3.6, 3.7, 3.8, 3.9 do not allow writing union types as X | Y"><caret>int | str | None</warning>:
|
||||
def foo() -> <warning descr="Python versions 2.7, 3.7, 3.8, 3.9 do not allow writing union types as X | Y"><caret>int | str | None</warning>:
|
||||
return 42
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
def foo() -> <warning descr="Python versions 2.7, 3.5, 3.6, 3.7, 3.8, 3.9 do not allow writing union types as X | Y">None | int<caret></warning>:
|
||||
def foo() -> <warning descr="Python versions 2.7, 3.7, 3.8, 3.9 do not allow writing union types as X | Y">None | int<caret></warning>:
|
||||
return 42
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
class A:
|
||||
pass
|
||||
|
||||
assert isinstance(A(), <warning descr="Python versions 2.7, 3.5, 3.6, 3.7, 3.8, 3.9 do not allow writing union types as X | Y">(int<caret> | str | (list[str] | bool | float)) | dict[str, int]</warning>)
|
||||
assert isinstance(A(), <warning descr="Python versions 2.7, 3.7, 3.8, 3.9 do not allow writing union types as X | Y">(int<caret> | str | (list[str] | bool | float)) | dict[str, int]</warning>)
|
||||
Reference in New Issue
Block a user