diff --git a/python/python-markdown/test/com/jetbrains/python/markdown/PyCodeFenceTest.kt b/python/python-markdown/test/com/jetbrains/python/markdown/PyCodeFenceTest.kt
index aea9f3d7380b..7c78ba865b6f 100644
--- a/python/python-markdown/test/com/jetbrains/python/markdown/PyCodeFenceTest.kt
+++ b/python/python-markdown/test/com/jetbrains/python/markdown/PyCodeFenceTest.kt
@@ -142,7 +142,7 @@ class PyCodeFenceTest : PyTestCase() {
expect_str("abc")
# Should warn
- expect_bytes("abc")
+ expect_bytes("abc")
```
""".trimIndent())
myFixture.enableInspections(PyTypeCheckerInspection::class.java)
diff --git a/python/testData/inspections/PyTypeCheckerInspection/Assignment.py b/python/testData/inspections/PyTypeCheckerInspection/Assignment.py
index 848a5b2a3f66..3791eb7f27d6 100644
--- a/python/testData/inspections/PyTypeCheckerInspection/Assignment.py
+++ b/python/testData/inspections/PyTypeCheckerInspection/Assignment.py
@@ -1,5 +1,5 @@
def f():
- x1: int = 'foo'
+ x1: int = 'foo'
x2: str = 'bar'
x3: int = 0
x4: str = 1
diff --git a/python/testData/inspections/PyTypeCheckerInspection/BuiltinsPy3.py b/python/testData/inspections/PyTypeCheckerInspection/BuiltinsPy3.py
index fa68c597b58e..5a34ce9f33a2 100644
--- a/python/testData/inspections/PyTypeCheckerInspection/BuiltinsPy3.py
+++ b/python/testData/inspections/PyTypeCheckerInspection/BuiltinsPy3.py
@@ -1,6 +1,6 @@
def test_operators():
- print(2 + 'foo')
- print(b'foo' + 'bar')
+ print(2 + 'foo')
+ print(b'foo' + 'bar')
print(b'foo' + 3)
@@ -11,6 +11,6 @@ def test_numerics():
float(False)
complex(False)
divmod(False, False)
- divmod(b'foo', 'bar')
+ divmod(b'foo', 'bar')
pow(False, True)
- round(False, 'foo')
+ round(False, 'foo')
diff --git a/python/testData/inspections/PyTypeCheckerInspection/CallOperator.py b/python/testData/inspections/PyTypeCheckerInspection/CallOperator.py
index ec9be4d057aa..432b51eddb77 100644
--- a/python/testData/inspections/PyTypeCheckerInspection/CallOperator.py
+++ b/python/testData/inspections/PyTypeCheckerInspection/CallOperator.py
@@ -3,5 +3,5 @@ class Foo:
return arg
bar = Foo()
-bar.__call__("s")
-bar("s")
\ No newline at end of file
+bar.__call__("s")
+bar("s")
\ No newline at end of file
diff --git a/python/testData/inspections/PyTypeCheckerInspection/ChainedComparisonsGenericMatching.py b/python/testData/inspections/PyTypeCheckerInspection/ChainedComparisonsGenericMatching.py
index b6a5f8bef6f8..0e552c0db09d 100644
--- a/python/testData/inspections/PyTypeCheckerInspection/ChainedComparisonsGenericMatching.py
+++ b/python/testData/inspections/PyTypeCheckerInspection/ChainedComparisonsGenericMatching.py
@@ -11,4 +11,4 @@ class MyClass(Generic[T]):
pass
-x = MyClass(1) < MyClass(2) < MyClass('foo')
+x = MyClass(1) < MyClass(2) < MyClass('foo')
diff --git a/python/testData/inspections/PyTypeCheckerInspection/ClassLevelAssignment.py b/python/testData/inspections/PyTypeCheckerInspection/ClassLevelAssignment.py
index 2bc3ea3fb731..254a4d056b80 100644
--- a/python/testData/inspections/PyTypeCheckerInspection/ClassLevelAssignment.py
+++ b/python/testData/inspections/PyTypeCheckerInspection/ClassLevelAssignment.py
@@ -9,13 +9,13 @@ class C:
def f(self):
self.x = 1
- self.x = 'bar'
+ self.x = 'bar'
self.y = 1
- self.y = 'bar'
+ self.y = 'bar'
self.z = 1
- self.z = 'bar'
+ self.z = 'bar'
self.class_var = 1
- self.class_var = 'bar'
+ self.class_var = 'bar'
C.class_var = 1
C.class_var = 'bar'
diff --git a/python/testData/inspections/PyTypeCheckerInspection/DataclassesReplace/a.py b/python/testData/inspections/PyTypeCheckerInspection/DataclassesReplace/a.py
index 76c8f38b1ce5..4ec7c85b1941 100644
--- a/python/testData/inspections/PyTypeCheckerInspection/DataclassesReplace/a.py
+++ b/python/testData/inspections/PyTypeCheckerInspection/DataclassesReplace/a.py
@@ -9,7 +9,7 @@ class A:
replace(A(1))
replace(A(1), a=1, b="abc")
-replace(A(1), a="str", b=1)
+replace(A(1), a="str", b=1)
@dataclass
@@ -20,7 +20,7 @@ class B:
replace(B(1))
replace(B(1), a=1)
-replace(B(1), a="str")
+replace(B(1), a="str")
@dataclass
@@ -31,7 +31,7 @@ class C:
replace(C(1))
replace(C(1), a=1, b="str")
-replace(C(1), a="str", b=1)
+replace(C(1), a="str", b=1)
class D:
diff --git a/python/testData/inspections/PyTypeCheckerInspection/DelegatedGenerator.py b/python/testData/inspections/PyTypeCheckerInspection/DelegatedGenerator.py
index 78eda3358309..646fdf8a9977 100644
--- a/python/testData/inspections/PyTypeCheckerInspection/DelegatedGenerator.py
+++ b/python/testData/inspections/PyTypeCheckerInspection/DelegatedGenerator.py
@@ -8,4 +8,4 @@ def f(x: int) -> int:
def test():
- return f((yield from a()))
\ No newline at end of file
+ return f((yield from a()))
\ No newline at end of file
diff --git a/python/testData/inspections/PyTypeCheckerInspection/FunctionReturnTypePy3.py b/python/testData/inspections/PyTypeCheckerInspection/FunctionReturnTypePy3.py
index a9b9554a16a1..50ef2a06ff87 100644
--- a/python/testData/inspections/PyTypeCheckerInspection/FunctionReturnTypePy3.py
+++ b/python/testData/inspections/PyTypeCheckerInspection/FunctionReturnTypePy3.py
@@ -7,7 +7,7 @@ def b(x: int) -> List[str]:
return [1,2]
def c() -> int:
- return 'abc'
+ return 'abc'
def d(x: int) -> List[str]:
return [str(x)]
@@ -26,7 +26,7 @@ def f() -> Optional[str]:
def g(x) -> int:
if x:
- return 'abc'
+ return 'abc'
else:
return {}
diff --git a/python/testData/inspections/PyTypeCheckerInspection/HomogeneousTuples.py b/python/testData/inspections/PyTypeCheckerInspection/HomogeneousTuples.py
index 2d670c53dfac..75bf017666b8 100644
--- a/python/testData/inspections/PyTypeCheckerInspection/HomogeneousTuples.py
+++ b/python/testData/inspections/PyTypeCheckerInspection/HomogeneousTuples.py
@@ -9,7 +9,7 @@ int_and_bool = (42, True)
expects_many_ints(int_and_bool)
int_and_str = (42, 'foo')
-expects_many_ints(int_and_str)
+expects_many_ints(int_and_str)
booleans = (True, False) # type: Tuple[bool, ...]
expects_many_ints(booleans)
diff --git a/python/testData/inspections/PyTypeCheckerInspection/InitializingDataclass/a.py b/python/testData/inspections/PyTypeCheckerInspection/InitializingDataclass/a.py
index 18d223ad56e5..6891cccbd950 100644
--- a/python/testData/inspections/PyTypeCheckerInspection/InitializingDataclass/a.py
+++ b/python/testData/inspections/PyTypeCheckerInspection/InitializingDataclass/a.py
@@ -8,10 +8,10 @@ class A:
z: float = 0.0
A(1, "a")
-A("a", 1)
+A("a", 1)
A(1, "a", 1.0)
-A("a", 1, "b")
+A("a", 1, "b")
@dataclasses.dataclass(init=True)
@@ -21,10 +21,10 @@ class A2:
z: float = 0.0
A2(1, "a")
-A2("a", 1)
+A2("a", 1)
A2(1, "a", 1.0)
-A2("a", 1, "b")
+A2("a", 1, "b")
@dataclasses.dataclass(init=False)
@@ -55,7 +55,7 @@ class B2:
self.z = 0.0
B2(1)
-B2("1")
+B2("1")
@dataclasses.dataclass
@@ -64,7 +64,7 @@ class C1:
b: int
C1(1)
-C1("1")
+C1("1")
@dataclasses.dataclass
@@ -73,7 +73,7 @@ class C2:
b: int
C2(1)
-C2("1")
+C2("1")
@dataclasses.dataclass
@@ -82,7 +82,7 @@ class D1:
b: int
D1(1, 2)
-D1("1", "2")
+D1("1", "2")
@dataclasses.dataclass
@@ -94,13 +94,13 @@ class E1:
e: int = dataclasses.field(default_factory=int)
E1(1, "1")
-E1("1", 1)
+E1("1", 1)
E1(1, "1", b"1")
E1(b"1", "1", 1)
E1(1, "1", b"1", 1)
-E1("1", b"1", "1", "1")
+E1("1", b"1", "1", "1")
@dataclasses.dataclass
diff --git a/python/testData/inspections/PyTypeCheckerInspection/InitializingNewType.py b/python/testData/inspections/PyTypeCheckerInspection/InitializingNewType.py
index 1d80feee28ba..0bb081f75684 100644
--- a/python/testData/inspections/PyTypeCheckerInspection/InitializingNewType.py
+++ b/python/testData/inspections/PyTypeCheckerInspection/InitializingNewType.py
@@ -3,10 +3,10 @@ from typing import NewType, Dict
UserId = NewType("UserId", int)
a = UserId(42)
-b = UserId("John")
+b = UserId("John")
KeyValue = NewType("KeyValue", Dict[str, int])
KeyValue({"key": 13})
KeyValue(42)
-KeyValue({"key1": "key2"})
+KeyValue({"key1": "key2"})
diff --git a/python/testData/inspections/PyTypeCheckerInspection/InitializingTypingNamedTuple.py b/python/testData/inspections/PyTypeCheckerInspection/InitializingTypingNamedTuple.py
index de432484be6d..b02bc1a9f199 100644
--- a/python/testData/inspections/PyTypeCheckerInspection/InitializingTypingNamedTuple.py
+++ b/python/testData/inspections/PyTypeCheckerInspection/InitializingTypingNamedTuple.py
@@ -27,9 +27,9 @@ MyTup7 = typing.NamedTuple("MyTup7", names=List[str], ages=List[int])
# fail
-MyTup2('', '')
-MyTup2(bar='', baz='')
-MyTup2(baz='', bar='')
+MyTup2('', '')
+MyTup2(bar='', baz='')
+MyTup2(baz='', bar='')
# ok
@@ -39,9 +39,9 @@ MyTup2(baz='', bar=5)
# fail
-MyTup3('', '')
-MyTup3(bar='', baz='')
-MyTup3(baz='', bar='')
+MyTup3('', '')
+MyTup3(bar='', baz='')
+MyTup3(baz='', bar='')
# ok
@@ -51,9 +51,9 @@ MyTup3(baz='', bar=5)
# fail
-MyTup4('', '')
-MyTup4(bar='', baz='')
-MyTup4(baz='', bar='')
+MyTup4('', '')
+MyTup4(bar='', baz='')
+MyTup4(baz='', bar='')
# ok
@@ -63,9 +63,9 @@ MyTup4(baz='', bar=5)
# fail
-MyTup5('', '')
-MyTup5(bar='', baz='')
-MyTup5(baz='', bar='')
+MyTup5('', '')
+MyTup5(bar='', baz='')
+MyTup5(baz='', bar='')
# ok
@@ -75,8 +75,8 @@ MyTup5(baz='', bar=5)
# fail
-MyTup6(bar='', baz='', foo='')
-MyTup6('', '', '')
+MyTup6(bar='', baz='', foo='')
+MyTup6('', '', '')
# ok
@@ -85,8 +85,8 @@ MyTup6(5, '', 5)
# fail
-MyTup7(names="A", ages=5)
-MyTup7("A", 5)
+MyTup7(names="A", ages=5)
+MyTup7("A", 5)
# ok
diff --git a/python/testData/inspections/PyTypeCheckerInspection/MapArgumentsInOppositeOrderPy3.py b/python/testData/inspections/PyTypeCheckerInspection/MapArgumentsInOppositeOrderPy3.py
index 07128b609f1c..716dd9ca9f05 100644
--- a/python/testData/inspections/PyTypeCheckerInspection/MapArgumentsInOppositeOrderPy3.py
+++ b/python/testData/inspections/PyTypeCheckerInspection/MapArgumentsInOppositeOrderPy3.py
@@ -1 +1 @@
-map('foo', lambda c: 42)
+map('foo', lambda c: 42)
diff --git a/python/testData/inspections/PyTypeCheckerInspection/NewTypeAsParameter.py b/python/testData/inspections/PyTypeCheckerInspection/NewTypeAsParameter.py
index 6f4d22f037cb..005b71e84d8e 100644
--- a/python/testData/inspections/PyTypeCheckerInspection/NewTypeAsParameter.py
+++ b/python/testData/inspections/PyTypeCheckerInspection/NewTypeAsParameter.py
@@ -7,5 +7,5 @@ def get_user(user: UserId) -> str:
get_user(UserId(5))
-get_user("John")
+get_user("John")
get_user(4)
\ No newline at end of file
diff --git a/python/testData/inspections/PyTypeCheckerInspection/OptionalOfBoundTypeVarInWarnings.py b/python/testData/inspections/PyTypeCheckerInspection/OptionalOfBoundTypeVarInWarnings.py
index 663f4e1367cd..11925868e6df 100644
--- a/python/testData/inspections/PyTypeCheckerInspection/OptionalOfBoundTypeVarInWarnings.py
+++ b/python/testData/inspections/PyTypeCheckerInspection/OptionalOfBoundTypeVarInWarnings.py
@@ -8,4 +8,4 @@ def expects_int_subclass_or_none(x: Optional[T]):
pass
-expects_int_subclass_or_none('foo')
\ No newline at end of file
+expects_int_subclass_or_none('foo')
\ No newline at end of file
diff --git a/python/testData/inspections/PyTypeCheckerInspection/ParametrizedBuiltinCollectionsAndTheirTypingAliasesAreEquivalent.py b/python/testData/inspections/PyTypeCheckerInspection/ParametrizedBuiltinCollectionsAndTheirTypingAliasesAreEquivalent.py
index cc9fa70a52a8..fdb5765c3df6 100644
--- a/python/testData/inspections/PyTypeCheckerInspection/ParametrizedBuiltinCollectionsAndTheirTypingAliasesAreEquivalent.py
+++ b/python/testData/inspections/PyTypeCheckerInspection/ParametrizedBuiltinCollectionsAndTheirTypingAliasesAreEquivalent.py
@@ -3,49 +3,49 @@ from typing import Dict, FrozenSet, List, Set, Tuple
def expects_builtin_list(xs: list[int]):
expects_typing_List(xs)
- expects_typing_List(['a'])
+ expects_typing_List(['a'])
def expects_typing_List(xs: List[int]):
expects_builtin_list(xs)
- expects_builtin_list(['a'])
+ expects_builtin_list(['a'])
def expects_builtin_set(xs: set[int]):
expects_typing_Set(xs)
- expects_typing_Set({'a'})
+ expects_typing_Set({'a'})
def expects_typing_Set(xs: Set[int]):
expects_builtin_set(xs)
- expects_builtin_set({'a'})
+ expects_builtin_set({'a'})
def expects_builtin_frozenset(xs: frozenset[int]):
expects_typing_FrozenSet(xs)
- expects_typing_FrozenSet(frozenset(['a']))
+ expects_typing_FrozenSet(frozenset(['a']))
def expects_typing_FrozenSet(xs: FrozenSet[int]):
expects_builtin_frozenset(xs)
- expects_builtin_frozenset(frozenset(['a']))
+ expects_builtin_frozenset(frozenset(['a']))
def expects_builtin_dict(xs: dict[str, int]):
expects_typing_Dict(xs)
- expects_typing_Dict({42: 'a'})
+ expects_typing_Dict({42: 'a'})
def expects_typing_Dict(xs: Dict[str, int]):
expects_builtin_dict(xs)
- expects_builtin_dict({42: 'a'})
+ expects_builtin_dict({42: 'a'})
def expects_builtin_tuple(xs: tuple[str, int]):
expects_typing_Tuple(xs)
- expects_typing_Tuple((42, 'a'))
+ expects_typing_Tuple((42, 'a'))
def expects_typing_Tuple(xs: Tuple[str, int]):
expects_builtin_tuple(xs)
- expects_builtin_tuple((42, 'a'))
+ expects_builtin_tuple((42, 'a'))
diff --git a/python/testData/inspections/PyTypeCheckerInspection/ReAssignment.py b/python/testData/inspections/PyTypeCheckerInspection/ReAssignment.py
index 44e6c5b5bf65..22dfa9fcd720 100644
--- a/python/testData/inspections/PyTypeCheckerInspection/ReAssignment.py
+++ b/python/testData/inspections/PyTypeCheckerInspection/ReAssignment.py
@@ -1,8 +1,8 @@
def f():
x: int = 0
- x = 'foo'
+ x = 'foo'
x = 1
- x = 'bar'
+ x = 'bar'
y: str = 'foo'
y = 'bar'
y = 0
diff --git a/python/testData/inspections/PyTypeCheckerInspection/StructUnpackPy3/a.py b/python/testData/inspections/PyTypeCheckerInspection/StructUnpackPy3/a.py
index faeb158d8f84..292b18e5d7f5 100644
--- a/python/testData/inspections/PyTypeCheckerInspection/StructUnpackPy3/a.py
+++ b/python/testData/inspections/PyTypeCheckerInspection/StructUnpackPy3/a.py
@@ -1,5 +1,5 @@
from struct import Struct
s = Struct('c')
-s.unpack('\x00')
+s.unpack('\x00')
s.unpack(b'\x00')
diff --git a/python/testData/inspections/PyTypeCheckerInspection/TypeDeclarationAndAssignment.py b/python/testData/inspections/PyTypeCheckerInspection/TypeDeclarationAndAssignment.py
index ade52ac6a608..190347dd1f4a 100644
--- a/python/testData/inspections/PyTypeCheckerInspection/TypeDeclarationAndAssignment.py
+++ b/python/testData/inspections/PyTypeCheckerInspection/TypeDeclarationAndAssignment.py
@@ -1,5 +1,5 @@
def f():
x: int
- x = 'foo'
+ x = 'foo'
y: str
y = 'bar'
diff --git a/python/testData/inspections/PyTypeCheckerInspection/TypedDictInReturnType.py b/python/testData/inspections/PyTypeCheckerInspection/TypedDictInReturnType.py
index 9ce1cc4857bf..a7f2c9af5cec 100644
--- a/python/testData/inspections/PyTypeCheckerInspection/TypedDictInReturnType.py
+++ b/python/testData/inspections/PyTypeCheckerInspection/TypedDictInReturnType.py
@@ -13,7 +13,7 @@ def b(x: int) -> Point:
return {'x': 42}
def c() -> Point:
- return {'x': 'abc', 'y': 42}
+ return {'x': 'abc', 'y': 42}
def d() -> Point:
return {'x': 42, 'y': 42, 'k': 42}
@@ -22,7 +22,7 @@ def e1(x: int):
return {'x': x}
def e(x: int) -> Point:
- return e1(x)
+ return e1(x)
def f1(x: int) -> Point:
pass
@@ -34,7 +34,7 @@ def g() -> Point:
x = int(input())
y = {'x': x}
if x > 0:
- return y
+ return y
elif x == 0:
return Point(x=442, y=42)
else:
diff --git a/python/testData/inspections/PyTypeCheckerInspection/TypedDictInStub/a.py b/python/testData/inspections/PyTypeCheckerInspection/TypedDictInStub/a.py
index b29e2ddad997..84b1d60b24cb 100644
--- a/python/testData/inspections/PyTypeCheckerInspection/TypedDictInStub/a.py
+++ b/python/testData/inspections/PyTypeCheckerInspection/TypedDictInStub/a.py
@@ -1,3 +1,3 @@
avrora = {'name': 'Iskra', 'id': 42}
rodina = {'name': 'Iskra'}
-luksor = {'name': 'Iskra', 'id': '42'}
\ No newline at end of file
+luksor = {'name': 'Iskra', 'id': '42'}
\ No newline at end of file
diff --git a/python/testData/inspections/PyTypeCheckerInspection/TypingAnnotatedTypeMultiFile/a.py b/python/testData/inspections/PyTypeCheckerInspection/TypingAnnotatedTypeMultiFile/a.py
index a9aab0de7c7b..07f382942efe 100644
--- a/python/testData/inspections/PyTypeCheckerInspection/TypingAnnotatedTypeMultiFile/a.py
+++ b/python/testData/inspections/PyTypeCheckerInspection/TypingAnnotatedTypeMultiFile/a.py
@@ -1,5 +1,5 @@
from annotated import A
-a: A = 'str'
+a: A = 'str'
a1: A = 42
diff --git a/python/testData/inspections/PyTypeCheckerInspection/TypingCallableCall.py b/python/testData/inspections/PyTypeCheckerInspection/TypingCallableCall.py
index 4c0dd93fcc72..f054ba1515c0 100644
--- a/python/testData/inspections/PyTypeCheckerInspection/TypingCallableCall.py
+++ b/python/testData/inspections/PyTypeCheckerInspection/TypingCallableCall.py
@@ -28,5 +28,5 @@ cllbl_b(1, "2")
cllbl_c = baz()
cllbl_c(1, "2")
cllbl_c(1, 2)
-cllbl_c("1", "2")
+cllbl_c("1", "2")
cllbl_c([], [])
diff --git a/python/testData/inspections/PyTypeCheckerInspection/TypingRequiredTypeSpecificationsMultiFile/a.py b/python/testData/inspections/PyTypeCheckerInspection/TypingRequiredTypeSpecificationsMultiFile/a.py
index 503eaad40fba..11e321ab82af 100644
--- a/python/testData/inspections/PyTypeCheckerInspection/TypingRequiredTypeSpecificationsMultiFile/a.py
+++ b/python/testData/inspections/PyTypeCheckerInspection/TypingRequiredTypeSpecificationsMultiFile/a.py
@@ -3,4 +3,4 @@ from required import A, AlternativeSyntax
a: A = {}
a1: A = {'x': 42, 'y': 42}
-a2: AlternativeSyntax = {'y': "str"}
+a2: AlternativeSyntax = {'y': "str"}
diff --git a/python/testData/inspections/PyTypeCheckerInspection/TypingTypeVarWithUnresolvedBound.py b/python/testData/inspections/PyTypeCheckerInspection/TypingTypeVarWithUnresolvedBound.py
index 2786f5ce7020..de5fd2b6fee6 100644
--- a/python/testData/inspections/PyTypeCheckerInspection/TypingTypeVarWithUnresolvedBound.py
+++ b/python/testData/inspections/PyTypeCheckerInspection/TypingTypeVarWithUnresolvedBound.py
@@ -8,4 +8,4 @@ def calc(a: T, b: T):
pass
-calc('a', 0)
+calc('a', 0)
diff --git a/python/testData/inspections/PyTypeCheckerInspection/WithOpenBinaryPy3.py b/python/testData/inspections/PyTypeCheckerInspection/WithOpenBinaryPy3.py
index 776c23aec493..3f5960f0fa7c 100644
--- a/python/testData/inspections/PyTypeCheckerInspection/WithOpenBinaryPy3.py
+++ b/python/testData/inspections/PyTypeCheckerInspection/WithOpenBinaryPy3.py
@@ -2,4 +2,4 @@ with open('foo', 'wb') as fd:
fd.write(b'bar')
with open('foo', 'wb') as fd:
- fd.write('bar')
+ fd.write('bar')
diff --git a/python/testData/inspections/PyUnresolvedReferencesInspection3K/descriptorAttribute.py b/python/testData/inspections/PyUnresolvedReferencesInspection3K/descriptorAttribute.py
index 83d5690cc173..19df50cbd4d4 100644
--- a/python/testData/inspections/PyUnresolvedReferencesInspection3K/descriptorAttribute.py
+++ b/python/testData/inspections/PyUnresolvedReferencesInspection3K/descriptorAttribute.py
@@ -25,7 +25,7 @@ class C:
# Instance level
c = C()
c.foo.upper()
-c.foo.non_existent()
+c.foo.non_existent()
c.bar.upper()
c.bar.non_existent()
c.baz.append()
@@ -34,6 +34,6 @@ c.baz.non_existent()
+C.foo.non_existent()
C.bar.upper()
C.bar.non_existent()
diff --git a/python/testData/intentions/PyAnnotateVariableTypeIntentionTest/AnnotationImportTypingAny/main_after.py b/python/testData/intentions/PyAnnotateVariableTypeIntentionTest/AnnotationImportTypingAny/main_after.py
index 288f1bb22e1a..f663ded9e3db 100644
--- a/python/testData/intentions/PyAnnotateVariableTypeIntentionTest/AnnotationImportTypingAny/main_after.py
+++ b/python/testData/intentions/PyAnnotateVariableTypeIntentionTest/AnnotationImportTypingAny/main_after.py
@@ -1,6 +1,6 @@
-from typing import Dict, LiteralString, Any
+from typing import Dict, Any
def func(x):
- var: [Dict[LiteralString, Any]] = {'foo': x}
+ var: [Dict[str, Any]] = {'foo': x}
var
\ No newline at end of file
diff --git a/python/testData/intentions/PyAnnotateVariableTypeIntentionTest/AnnotationImportTypingUnion/main_after.py b/python/testData/intentions/PyAnnotateVariableTypeIntentionTest/AnnotationImportTypingUnion/main_after.py
index a82071c43564..1000cf807915 100644
--- a/python/testData/intentions/PyAnnotateVariableTypeIntentionTest/AnnotationImportTypingUnion/main_after.py
+++ b/python/testData/intentions/PyAnnotateVariableTypeIntentionTest/AnnotationImportTypingUnion/main_after.py
@@ -1,8 +1,8 @@
-from typing import Union, LiteralString
+from typing import Union
from lib import foo
def func():
- var: [Union[LiteralString, int]] = foo
+ var: [Union[str, int]] = foo
var
\ No newline at end of file
diff --git a/python/testData/intentions/PyAnnotateVariableTypeIntentionTest/annotationLocalChainedAssignmentTarget_after.py b/python/testData/intentions/PyAnnotateVariableTypeIntentionTest/annotationLocalChainedAssignmentTarget_after.py
index d0010fe9297f..bd837573a9ed 100644
--- a/python/testData/intentions/PyAnnotateVariableTypeIntentionTest/annotationLocalChainedAssignmentTarget_after.py
+++ b/python/testData/intentions/PyAnnotateVariableTypeIntentionTest/annotationLocalChainedAssignmentTarget_after.py
@@ -1,7 +1,4 @@
-from typing import LiteralString
-
-
def func():
- var: [LiteralString]
+ var: [str]
var = another = 'spam'
var
\ No newline at end of file
diff --git a/python/testData/intentions/PyAnnotateVariableTypeIntentionTest/annotationLocalForTarget_after.py b/python/testData/intentions/PyAnnotateVariableTypeIntentionTest/annotationLocalForTarget_after.py
index dcf5627c109c..8a3144208a9c 100644
--- a/python/testData/intentions/PyAnnotateVariableTypeIntentionTest/annotationLocalForTarget_after.py
+++ b/python/testData/intentions/PyAnnotateVariableTypeIntentionTest/annotationLocalForTarget_after.py
@@ -1,6 +1,3 @@
-from typing import LiteralString
-
-
def func():
var: [LiteralString]
for var in 'spam':
diff --git a/python/testData/intentions/PyAnnotateVariableTypeIntentionTest/annotationLocalSimpleAssignmentTarget_after.py b/python/testData/intentions/PyAnnotateVariableTypeIntentionTest/annotationLocalSimpleAssignmentTarget_after.py
index 20c561efc7d6..d4497ad25280 100644
--- a/python/testData/intentions/PyAnnotateVariableTypeIntentionTest/annotationLocalSimpleAssignmentTarget_after.py
+++ b/python/testData/intentions/PyAnnotateVariableTypeIntentionTest/annotationLocalSimpleAssignmentTarget_after.py
@@ -1,6 +1,3 @@
-from typing import LiteralString
-
-
def func():
- var: [LiteralString] = 'spam'
+ var: [str] = 'spam'
var
diff --git a/python/testData/intentions/PyAnnotateVariableTypeIntentionTest/annotationLocalUnpackedAssignmentTarget_after.py b/python/testData/intentions/PyAnnotateVariableTypeIntentionTest/annotationLocalUnpackedAssignmentTarget_after.py
index 773eed826c90..64f4008aad8f 100644
--- a/python/testData/intentions/PyAnnotateVariableTypeIntentionTest/annotationLocalUnpackedAssignmentTarget_after.py
+++ b/python/testData/intentions/PyAnnotateVariableTypeIntentionTest/annotationLocalUnpackedAssignmentTarget_after.py
@@ -1,7 +1,4 @@
-from typing import LiteralString
-
-
def func():
- var: [LiteralString]
+ var: [str]
var, _ = 'spam', 42
var
diff --git a/python/testData/intentions/PyAnnotateVariableTypeIntentionTest/annotationTupleType_after.py b/python/testData/intentions/PyAnnotateVariableTypeIntentionTest/annotationTupleType_after.py
index f7fa0b49e3af..fe382ba86b97 100644
--- a/python/testData/intentions/PyAnnotateVariableTypeIntentionTest/annotationTupleType_after.py
+++ b/python/testData/intentions/PyAnnotateVariableTypeIntentionTest/annotationTupleType_after.py
@@ -1,3 +1,3 @@
-from typing import Tuple, LiteralString
+from typing import Tuple
-var: [Tuple[int, LiteralString, None]] = (1, 'foo', None)
\ No newline at end of file
+var: [Tuple[int, str, None]] = (1, 'foo', None)
\ No newline at end of file
diff --git a/python/testData/pyi/inspections/overloadedGenerics/OverloadedGenerics.py b/python/testData/pyi/inspections/overloadedGenerics/OverloadedGenerics.py
index 7b4d124cbdd2..03e14f848cb4 100644
--- a/python/testData/pyi/inspections/overloadedGenerics/OverloadedGenerics.py
+++ b/python/testData/pyi/inspections/overloadedGenerics/OverloadedGenerics.py
@@ -1,6 +1,6 @@
from m1 import g, Gen
g(Gen(10).get(10, 10))
-g(Gen(10).get(10, 'foo'))
-g(Gen('foo').get(10, 10))
-g(Gen('foo').get(10, 'foo'))
+g(Gen(10).get(10, 'foo'))
+g(Gen('foo').get(10, 10))
+g(Gen('foo').get(10, 'foo'))
diff --git a/python/testData/pyi/inspections/overloadsWithDifferentNumberOfParameters/OverloadsWithDifferentNumberOfParameters.py b/python/testData/pyi/inspections/overloadsWithDifferentNumberOfParameters/OverloadsWithDifferentNumberOfParameters.py
index 7d7db5933abb..93ff6a278cb0 100644
--- a/python/testData/pyi/inspections/overloadsWithDifferentNumberOfParameters/OverloadsWithDifferentNumberOfParameters.py
+++ b/python/testData/pyi/inspections/overloadsWithDifferentNumberOfParameters/OverloadsWithDifferentNumberOfParameters.py
@@ -3,26 +3,26 @@ from m1 import f, g, h
def test_different_number_of_parameters():
f(5)
- f("a")
+ f("a")
f(5, "a")
- f("a", "b")
+ f("a", "b")
f(5, 6)
- f("a", 5)
+ f("a", 5)
def test_same_number_of_parameters_but_one_is_default():
g(5)
- g("a")
+ g("a")
- g("a", False)
+ g("a", False)
g(5, 6)
g(False, 5)
g(5, "a")
- g("a", "b")
+ g("a", "b")
g(5, 6)
- g("a", 5)
+ g("a", 5)
def test_different_number_of_parameters_one_is_default():
@@ -34,4 +34,4 @@ def test_different_number_of_parameters_one_is_default():
h("a", False)
h(5, False) # fail
h("a", 5) # fail
- h(False, "a") # fail
\ No newline at end of file
+ h(False, "a") # fail
\ No newline at end of file
diff --git a/python/testData/quickFixes/PyRemoveCallQuickFixTest/class.py b/python/testData/quickFixes/PyRemoveCallQuickFixTest/class.py
index cd9e2e8d3ca6..52530e7b14d1 100644
--- a/python/testData/quickFixes/PyRemoveCallQuickFixTest/class.py
+++ b/python/testData/quickFixes/PyRemoveCallQuickFixTest/class.py
@@ -3,4 +3,4 @@ class A():
x = ""
-b = A().x()
\ No newline at end of file
+b = A().x()
\ No newline at end of file
diff --git a/python/testData/quickFixes/PyRemoveCallQuickFixTest/decorator.py b/python/testData/quickFixes/PyRemoveCallQuickFixTest/decorator.py
index 74b26f1adb69..7f8efe576fa9 100644
--- a/python/testData/quickFixes/PyRemoveCallQuickFixTest/decorator.py
+++ b/python/testData/quickFixes/PyRemoveCallQuickFixTest/decorator.py
@@ -5,7 +5,7 @@ def b(c):
pass
-@a
+@a
@b
def foo():
pass
diff --git a/python/testData/quickFixes/PyRemoveCallQuickFixTest/expression.py b/python/testData/quickFixes/PyRemoveCallQuickFixTest/expression.py
index dfe279c36a9a..7b9faddb5789 100644
--- a/python/testData/quickFixes/PyRemoveCallQuickFixTest/expression.py
+++ b/python/testData/quickFixes/PyRemoveCallQuickFixTest/expression.py
@@ -1,4 +1,4 @@
a = "string"
-b = a()
\ No newline at end of file
+b = a()
\ No newline at end of file
diff --git a/python/testData/quickdoc/ClassAttr.html b/python/testData/quickdoc/ClassAttr.html
index ebc36af9568e..bd772cb1d843 100644
--- a/python/testData/quickdoc/ClassAttr.html
+++ b/python/testData/quickdoc/ClassAttr.html
@@ -1 +1 @@
-
Class attribute the_attr of ClassAttr.C
the_attr: LiteralString = ""
The documentation for the attribute.
\ No newline at end of file
+The documentation for the attribute.
\ No newline at end of file
diff --git a/python/testData/quickdoc/DefaultValues.html b/python/testData/quickdoc/DefaultValues.html
index b9c5d29ef3e2..9a0f3c65a2c2 100644
--- a/python/testData/quickdoc/DefaultValues.html
+++ b/python/testData/quickdoc/DefaultValues.html
@@ -1,3 +1,3 @@
def method(self=42,
foo: list[int] = [1,
2],
- bar: LiteralString = "<br/>") -> None
\ No newline at end of file
+ bar: str = "<br/>") -> None