diff --git a/python/helpers/StdlibTypes.properties b/python/helpers/StdlibTypes.properties index 5d5de12fc621..70c9becc06be 100644 --- a/python/helpers/StdlibTypes.properties +++ b/python/helpers/StdlibTypes.properties @@ -1,474 +1,6 @@ # Python stdlib -## 5.4. Numeric types - -__builtin__.int.__init__ = \ - :type x: object \n\ - :type base: bool or int or long or float or complex or None \n\ - :rtype: int \n\ - -__builtin__.int.__add__ = \ - :type y: int or long or float or complex \n\ - :rtype: int \n\ - -__builtin__.int.__sub__ = \ - :type y: int or long or float or complex \n\ - :rtype: int \n\ - -__builtin__.int.__mul__ = \ - :type y: int or long or float or complex \n\ - :rtype: int \n\ - -__builtin__.int.__floordiv__ = \ - :type y: int or long or float or complex \n\ - :rtype: int \n\ - -__builtin__.int.__mod__ = \ - :type y: int or long or float or complex \n\ - :rtype: int \n\ - -__builtin__.int.__pow__ = \ - :type y: int or long or float or complex \n\ - :rtype: int \n\ - -__builtin__.int.__lshift__ = \ - :type y: int or long or float or complex \n\ - :rtype: int \n\ - -__builtin__.int.__rshift__ = \ - :type y: int or long or float or complex \n\ - :rtype: int \n\ - -__builtin__.int.__and__ = \ - :type y: int or long or float or complex \n\ - :rtype: int \n\ - -__builtin__.int.__or__ = \ - :type y: int or long or float or complex \n\ - :rtype: int \n\ - -__builtin__.int.__xor__ = \ - :type y: int or long or float or complex \n\ - :rtype: int \n\ - -__builtin__.int.__div__ = \ - :type y: int or long or float or complex \n\ - :rtype: int \n\ - -__builtin__.int.__truediv__ = \ - :type y: int or long or float or complex \n\ - :rtype: int \n\ - -__builtin__.int.__radd__ = \ - :type y: int or long or float or complex \n\ - :rtype: int \n\ - -__builtin__.int.__rsub__ = \ - :type y: int or long or float or complex \n\ - :rtype: int \n\ - -__builtin__.int.__rmul__ = \ - :type y: int or long or float or complex \n\ - :rtype: int \n\ - -__builtin__.int.__rfloordiv__ = \ - :type y: int or long or float or complex \n\ - :rtype: int \n\ - -__builtin__.int.__rmod__ = \ - :type y: int or long or float or complex \n\ - :rtype: int \n\ - -__builtin__.int.__rpow__ = \ - :type y: int or long or float or complex \n\ - :rtype: int \n\ - -__builtin__.int.__rlshift__ = \ - :type y: int or long or float or complex \n\ - :rtype: int \n\ - -__builtin__.int.__rrshift__ = \ - :type y: int or long or float or complex \n\ - :rtype: int \n\ - -__builtin__.int.__rand__ = \ - :type y: int or long or float or complex \n\ - :rtype: int \n\ - -__builtin__.int.__ror__ = \ - :type y: int or long or float or complex \n\ - :rtype: int \n\ - -__builtin__.int.__rxor__ = \ - :type y: int or long or float or complex \n\ - :rtype: int \n\ - -__builtin__.int.__rdiv__ = \ - :type y: int or long or float or complex \n\ - :rtype: int \n\ - -__builtin__.int.__rtruediv__ = \ - :type y: int or long or float or complex \n\ - :rtype: int \n\ - -__builtin__.int.__pos__ = \ - :rtype: int \n\ - -__builtin__.int.__neg__ = \ - :rtype: int \n\ - -__builtin__.int.__invert__ = \ - :rtype: int \n\ - -__builtin__.long.__init__ = \ - :type x: object \n\ - :type base: bool or int or long or float or complex or None \n\ - :rtype: long \n\ - -__builtin__.long.__add__ = \ - :type y: int or long or float or complex \n\ - :rtype: long \n\ - -__builtin__.long.__sub__ = \ - :type y: int or long or float or complex \n\ - :rtype: long \n\ - -__builtin__.long.__mul__ = \ - :type y: int or long or float or complex \n\ - :rtype: long \n\ - -__builtin__.long.__floordiv__ = \ - :type y: int or long or float or complex \n\ - :rtype: long \n\ - -__builtin__.long.__mod__ = \ - :type y: int or long or float or complex \n\ - :rtype: long \n\ - -__builtin__.long.__pow__ = \ - :type y: int or long or float or complex \n\ - :rtype: long \n\ - -__builtin__.long.__lshift__ = \ - :type y: int or long or float or complex \n\ - :rtype: long \n\ - -__builtin__.long.__rshift__ = \ - :type y: int or long or float or complex \n\ - :rtype: long \n\ - -__builtin__.long.__and__ = \ - :type y: int or long or float or complex \n\ - :rtype: long \n\ - -__builtin__.long.__or__ = \ - :type y: int or long or float or complex \n\ - :rtype: long \n\ - -__builtin__.long.__xor__ = \ - :type y: int or long or float or complex \n\ - :rtype: long \n\ - -__builtin__.long.__div__ = \ - :type y: int or long or float or complex \n\ - :rtype: long \n\ - -__builtin__.long.__truediv__ = \ - :type y: int or long or float or complex \n\ - :rtype: long \n\ - -__builtin__.long.__radd__ = \ - :type y: int or long or float or complex \n\ - :rtype: long \n\ - -__builtin__.long.__rsub__ = \ - :type y: int or long or float or complex \n\ - :rtype: long \n\ - -__builtin__.long.__rmul__ = \ - :type y: int or long or float or complex \n\ - :rtype: long \n\ - -__builtin__.long.__rfloordiv__ = \ - :type y: int or long or float or complex \n\ - :rtype: long \n\ - -__builtin__.long.__rmod__ = \ - :type y: int or long or float or complex \n\ - :rtype: long \n\ - -__builtin__.long.__rpow__ = \ - :type y: int or long or float or complex \n\ - :rtype: long \n\ - -__builtin__.long.__rlshift__ = \ - :type y: int or long or float or complex \n\ - :rtype: long \n\ - -__builtin__.long.__rrshift__ = \ - :type y: int or long or float or complex \n\ - :rtype: long \n\ - -__builtin__.long.__rand__ = \ - :type y: int or long or float or complex \n\ - :rtype: long \n\ - -__builtin__.long.__ror__ = \ - :type y: int or long or float or complex \n\ - :rtype: long \n\ - -__builtin__.long.__rxor__ = \ - :type y: int or long or float or complex \n\ - :rtype: long \n\ - -__builtin__.long.__rdiv__ = \ - :type y: int or long or float or complex \n\ - :rtype: long \n\ - -__builtin__.long.__rtruediv__ = \ - :type y: int or long or float or complex \n\ - :rtype: long \n\ - -__builtin__.long.__pos__ = \ - :rtype: long \n\ - -__builtin__.long.__neg__ = \ - :rtype: long \n\ - -__builtin__.long.__invert__ = \ - :rtype: long \n\ - -__builtin__.float.__init__ = \ - :type x: object \n\ - :rtype: float \n\ - -__builtin__.float.__add__ = \ - :type y: int or long or float or complex \n\ - :rtype: float \n\ - -__builtin__.float.__sub__ = \ - :type y: int or long or float or complex \n\ - :rtype: float \n\ - -__builtin__.float.__mul__ = \ - :type y: int or long or float or complex \n\ - :rtype: float \n\ - -__builtin__.float.__floordiv__ = \ - :type y: int or long or float or complex \n\ - :rtype: float \n\ - -__builtin__.float.__mod__ = \ - :type y: int or long or float or complex \n\ - :rtype: float \n\ - -__builtin__.float.__pow__ = \ - :type y: int or long or float or complex \n\ - :rtype: float \n\ - -__builtin__.float.__lshift__ = \ - :type y: int or long or float or complex \n\ - :rtype: float \n\ - -__builtin__.float.__rshift__ = \ - :type y: int or long or float or complex \n\ - :rtype: float \n\ - -__builtin__.float.__and__ = \ - :type y: int or long or float or complex \n\ - :rtype: float \n\ - -__builtin__.float.__or__ = \ - :type y: int or long or float or complex \n\ - :rtype: float \n\ - -__builtin__.float.__xor__ = \ - :type y: int or long or float or complex \n\ - :rtype: float \n\ - -__builtin__.float.__div__ = \ - :type y: int or long or float or complex \n\ - :rtype: float \n\ - -__builtin__.float.__truediv__ = \ - :type y: int or long or float or complex \n\ - :rtype: float \n\ - -__builtin__.float.__radd__ = \ - :type y: int or long or float or complex \n\ - :rtype: float \n\ - -__builtin__.float.__rsub__ = \ - :type y: int or long or float or complex \n\ - :rtype: float \n\ - -__builtin__.float.__rmul__ = \ - :type y: int or long or float or complex \n\ - :rtype: float \n\ - -__builtin__.float.__rfloordiv__ = \ - :type y: int or long or float or complex \n\ - :rtype: float \n\ - -__builtin__.float.__rmod__ = \ - :type y: int or long or float or complex \n\ - :rtype: float \n\ - -__builtin__.float.__rpow__ = \ - :type y: int or long or float or complex \n\ - :rtype: float \n\ - -__builtin__.float.__rlshift__ = \ - :type y: int or long or float or complex \n\ - :rtype: float \n\ - -__builtin__.float.__rrshift__ = \ - :type y: int or long or float or complex \n\ - :rtype: float \n\ - -__builtin__.float.__rand__ = \ - :type y: int or long or float or complex \n\ - :rtype: float \n\ - -__builtin__.float.__ror__ = \ - :type y: int or long or float or complex \n\ - :rtype: float \n\ - -__builtin__.float.__rxor__ = \ - :type y: int or long or float or complex \n\ - :rtype: float \n\ - -__builtin__.float.__rdiv__ = \ - :type y: int or long or float or complex \n\ - :rtype: float \n\ - -__builtin__.float.__rtruediv__ = \ - :type y: int or long or float or complex \n\ - :rtype: float \n\ - -__builtin__.float.__pos__ = \ - :rtype: float \n\ - -__builtin__.float.__neg__ = \ - :rtype: float \n\ - -__builtin__.complex.__init__ = \ - :type real: object \n\ - :type imag: object or None \n\ - :rtype: complex \n\ - -__builtin__.complex.__add__ = \ - :type y: int or long or float or complex \n\ - :rtype: complex \n\ - -__builtin__.complex.__sub__ = \ - :type y: int or long or float or complex \n\ - :rtype: complex \n\ - -__builtin__.complex.__mul__ = \ - :type y: int or long or float or complex \n\ - :rtype: complex \n\ - -__builtin__.complex.__floordiv__ = \ - :type y: int or long or float or complex \n\ - :rtype: complex \n\ - -__builtin__.complex.__mod__ = \ - :type y: int or long or float or complex \n\ - :rtype: complex \n\ - -__builtin__.complex.__pow__ = \ - :type y: int or long or float or complex \n\ - :rtype: complex \n\ - -__builtin__.complex.__lshift__ = \ - :type y: int or long or float or complex \n\ - :rtype: complex \n\ - -__builtin__.complex.__rshift__ = \ - :type y: int or long or float or complex \n\ - :rtype: complex \n\ - -__builtin__.complex.__and__ = \ - :type y: int or long or float or complex \n\ - :rtype: complex \n\ - -__builtin__.complex.__or__ = \ - :type y: int or long or float or complex \n\ - :rtype: complex \n\ - -__builtin__.complex.__xor__ = \ - :type y: int or long or float or complex \n\ - :rtype: complex \n\ - -__builtin__.complex.__div__ = \ - :type y: int or long or float or complex \n\ - :rtype: complex \n\ - -__builtin__.complex.__truediv__ = \ - :type y: int or long or float or complex \n\ - :rtype: complex \n\ - -__builtin__.complex.__radd__ = \ - :type y: int or long or float or complex \n\ - :rtype: complex \n\ - -__builtin__.complex.__rsub__ = \ - :type y: int or long or float or complex \n\ - :rtype: complex \n\ - -__builtin__.complex.__rmul__ = \ - :type y: int or long or float or complex \n\ - :rtype: complex \n\ - -__builtin__.complex.__rfloordiv__ = \ - :type y: int or long or float or complex \n\ - :rtype: complex \n\ - -__builtin__.complex.__rmod__ = \ - :type y: int or long or float or complex \n\ - :rtype: complex \n\ - -__builtin__.complex.__rpow__ = \ - :type y: int or long or float or complex \n\ - :rtype: complex \n\ - -__builtin__.complex.__rlshift__ = \ - :type y: int or long or float or complex \n\ - :rtype: complex \n\ - -__builtin__.complex.__rrshift__ = \ - :type y: int or long or float or complex \n\ - :rtype: complex \n\ - -__builtin__.complex.__rand__ = \ - :type y: int or long or float or complex \n\ - :rtype: complex \n\ - -__builtin__.complex.__ror__ = \ - :type y: int or long or float or complex \n\ - :rtype: complex \n\ - -__builtin__.complex.__rxor__ = \ - :type y: int or long or float or complex \n\ - :rtype: complex \n\ - -__builtin__.complex.__rdiv__ = \ - :type y: int or long or float or complex \n\ - :rtype: complex \n\ - -__builtin__.complex.__rtruediv__ = \ - :type y: int or long or float or complex \n\ - :rtype: complex \n\ - -__builtin__.complex.__pos__ = \ - :rtype: complex \n\ - -__builtin__.complex.__neg__ = \ - :rtype: complex \n\ - - ## 5.6. Sequence types __builtin__.bytes.__init__ = \ diff --git a/python/testData/inspections/PyTypeCheckerInspection/BoundedGeneric.py b/python/testData/inspections/PyTypeCheckerInspection/BoundedGeneric.py index 7fe25baa2b2a..7c626d093b1b 100644 --- a/python/testData/inspections/PyTypeCheckerInspection/BoundedGeneric.py +++ b/python/testData/inspections/PyTypeCheckerInspection/BoundedGeneric.py @@ -9,4 +9,4 @@ def test(): x = f(10) y = f('foo') z = f([]) - return x + y + return x + y diff --git a/python/testData/inspections/PyTypeCheckerInspection/DictGenerics.py b/python/testData/inspections/PyTypeCheckerInspection/DictGenerics.py index 028614f594ff..872b98822f09 100644 --- a/python/testData/inspections/PyTypeCheckerInspection/DictGenerics.py +++ b/python/testData/inspections/PyTypeCheckerInspection/DictGenerics.py @@ -5,4 +5,4 @@ def test_dict_generics(d): xs = d.items() d2 = dict(xs) for k, v in d2.items(): - print k + v + print k + v diff --git a/python/testData/inspections/PyTypeCheckerInspection/DictLiterals.py b/python/testData/inspections/PyTypeCheckerInspection/DictLiterals.py index 533bccc2235f..eb27a50a033f 100644 --- a/python/testData/inspections/PyTypeCheckerInspection/DictLiterals.py +++ b/python/testData/inspections/PyTypeCheckerInspection/DictLiterals.py @@ -1,7 +1,7 @@ def test(): xs = {'foo': 1, 'bar': 2} for v in xs.values(): - print(v + None) + print(v + None) for k in xs.keys(): print(k + None) for k in xs: diff --git a/python/testData/inspections/PyTypeCheckerInspection/GenericUserClasses.py b/python/testData/inspections/PyTypeCheckerInspection/GenericUserClasses.py index c114d411997a..4360bdd034d5 100644 --- a/python/testData/inspections/PyTypeCheckerInspection/GenericUserClasses.py +++ b/python/testData/inspections/PyTypeCheckerInspection/GenericUserClasses.py @@ -20,7 +20,7 @@ def test_generic_user_class(): self.x = value c = User1(10) - print(c.get() + 'foo') + print(c.get() + 'foo') c.put(14) c.put('foo') diff --git a/python/testData/inspections/PyTypeCheckerInspection/GenericUserFunctions.py b/python/testData/inspections/PyTypeCheckerInspection/GenericUserFunctions.py index 65590ceca6fe..8858b9b7b79d 100644 --- a/python/testData/inspections/PyTypeCheckerInspection/GenericUserFunctions.py +++ b/python/testData/inspections/PyTypeCheckerInspection/GenericUserFunctions.py @@ -38,7 +38,7 @@ def test(): result = f1([1, 2, 3]) print(result) - print(result + 'foo') + print(result + 'foo') f2(1, ['foo'], 'bar') diff --git a/python/testData/inspections/PyTypeCheckerInspection/LocalTypeResolve.py b/python/testData/inspections/PyTypeCheckerInspection/LocalTypeResolve.py index 01bf260199ce..8d66fadea7c4 100644 --- a/python/testData/inspections/PyTypeCheckerInspection/LocalTypeResolve.py +++ b/python/testData/inspections/PyTypeCheckerInspection/LocalTypeResolve.py @@ -5,4 +5,4 @@ def test(): c = C() x = c.f() y = x - return y + 'foo' + return y + 'foo' diff --git a/python/testData/inspections/PyTypeCheckerInspection/MapReturnElementType.py b/python/testData/inspections/PyTypeCheckerInspection/MapReturnElementType.py index 85f08d6dfc18..87628aa630d4 100644 --- a/python/testData/inspections/PyTypeCheckerInspection/MapReturnElementType.py +++ b/python/testData/inspections/PyTypeCheckerInspection/MapReturnElementType.py @@ -2,4 +2,4 @@ def test(): xs = map(lambda x: x + 1, [1, 2, 3]) print('foo' + xs[0]) ys = map(str, iter([1, 2, 3])) - print(1 + ys[0], 'bar' + ys[1]) + print(1 + ys[0], 'bar' + ys[1]) diff --git a/python/testData/inspections/PyTypeCheckerInspection/StringInteger.py b/python/testData/inspections/PyTypeCheckerInspection/StringInteger.py index ce379047b8ed..caad34d184ed 100644 --- a/python/testData/inspections/PyTypeCheckerInspection/StringInteger.py +++ b/python/testData/inspections/PyTypeCheckerInspection/StringInteger.py @@ -2,7 +2,7 @@ def test(): print('foo' + 'bar') print(2 + 3) print('foo' + 3) - print(3 + 'foo') + print(3 + 'foo') print('foo' + 'bar' * 3) print('foo' + 3 * 'bar') print('foo' + 2 * 3)