diff options
Diffstat (limited to 'sources/shiboken6')
10 files changed, 13 insertions, 13 deletions
diff --git a/sources/shiboken6/libshiboken/embed/signature_bootstrap.py b/sources/shiboken6/libshiboken/embed/signature_bootstrap.py index b0ba77107..7458500b3 100644 --- a/sources/shiboken6/libshiboken/embed/signature_bootstrap.py +++ b/sources/shiboken6/libshiboken/embed/signature_bootstrap.py @@ -167,7 +167,7 @@ def prepare_zipfile(): return sys.meta_path, EmbeddableZipImporter(vzip) -class EmbeddableZipImporter(object): +class EmbeddableZipImporter: def __init__(self, zip_file): def p2m(filename): diff --git a/sources/shiboken6/shibokenmodule/Shiboken.pyi b/sources/shiboken6/shibokenmodule/Shiboken.pyi index 6a1a63217..26fe9396e 100644 --- a/sources/shiboken6/shibokenmodule/Shiboken.pyi +++ b/sources/shiboken6/shibokenmodule/Shiboken.pyi @@ -13,12 +13,12 @@ Shiboken, except for defaults which are replaced by "...". from shiboken6 import Shiboken -class Object(object): +class Object: def __init__(self) -> None: ... -class VoidPtr(object): +class VoidPtr: def __init__(self, value: int) -> None: ... diff --git a/sources/shiboken6/shibokenmodule/files.dir/shibokensupport/signature/lib/enum_sig.py b/sources/shiboken6/shibokenmodule/files.dir/shibokensupport/signature/lib/enum_sig.py index 13508af1f..9dbddca2f 100644 --- a/sources/shiboken6/shibokenmodule/files.dir/shibokensupport/signature/lib/enum_sig.py +++ b/sources/shiboken6/shibokenmodule/files.dir/shibokensupport/signature/lib/enum_sig.py @@ -44,7 +44,7 @@ def signal_check(thing): return thing and type(thing) in (Signal, SignalInstance) -class ExactEnumerator(object): +class ExactEnumerator: """ ExactEnumerator enumerates all signatures in a module as they are. diff --git a/sources/shiboken6/shibokenmodule/files.dir/shibokensupport/signature/lib/pyi_generator.py b/sources/shiboken6/shibokenmodule/files.dir/shibokensupport/signature/lib/pyi_generator.py index ef0f32dc6..cff546005 100644 --- a/sources/shiboken6/shibokenmodule/files.dir/shibokensupport/signature/lib/pyi_generator.py +++ b/sources/shiboken6/shibokenmodule/files.dir/shibokensupport/signature/lib/pyi_generator.py @@ -30,7 +30,7 @@ from shibokensupport.signature.lib.tool import build_brace_pattern indent = " " * 4 -class Writer(object): +class Writer: def __init__(self, outfile, *args): self.outfile = outfile self.history = [True, True] diff --git a/sources/shiboken6/shibokenmodule/files.dir/shibokensupport/signature/mapping.py b/sources/shiboken6/shibokenmodule/files.dir/shibokensupport/signature/mapping.py index 5b7749388..af0fc6c0a 100644 --- a/sources/shiboken6/shibokenmodule/files.dir/shibokensupport/signature/mapping.py +++ b/sources/shiboken6/shibokenmodule/files.dir/shibokensupport/signature/mapping.py @@ -24,7 +24,7 @@ from typing import TypeVar, Generic from _imp import is_builtin -class ellipsis(object): +class ellipsis: def __repr__(self): return "..." @@ -126,7 +126,7 @@ class KeywordOnly(_NotCalled): # Parameterized primitive variables -class _Parameterized(object): +class _Parameterized: def __init__(self, type): self.type = type self.__name__ = self.__class__.__name__ @@ -149,7 +149,7 @@ class ArrayLikeVariable(_Parameterized): StringList = ArrayLikeVariable(str) -class Reloader(object): +class Reloader: """ Reloder class diff --git a/sources/shiboken6/tests/samplebinding/bug_704_test.py b/sources/shiboken6/tests/samplebinding/bug_704_test.py index d0cfe4038..76fa84653 100644 --- a/sources/shiboken6/tests/samplebinding/bug_704_test.py +++ b/sources/shiboken6/tests/samplebinding/bug_704_test.py @@ -15,7 +15,7 @@ init_paths() from sample import ObjectType -class NewStyle(object): +class NewStyle: def name(self): return "NewStyle" diff --git a/sources/shiboken6/tests/samplebinding/metaclass_test.py b/sources/shiboken6/tests/samplebinding/metaclass_test.py index c233e7e12..cbde1b579 100644 --- a/sources/shiboken6/tests/samplebinding/metaclass_test.py +++ b/sources/shiboken6/tests/samplebinding/metaclass_test.py @@ -18,7 +18,7 @@ class MetaA(type): pass -class A(object): +class A: __metaclass__ = MetaA diff --git a/sources/shiboken6/tests/samplebinding/mixed_mi_test.py b/sources/shiboken6/tests/samplebinding/mixed_mi_test.py index b3ee886d4..50e4970ce 100644 --- a/sources/shiboken6/tests/samplebinding/mixed_mi_test.py +++ b/sources/shiboken6/tests/samplebinding/mixed_mi_test.py @@ -17,7 +17,7 @@ init_paths() from sample import ObjectType -class Base(object): +class Base: '''Base Python class''' def __init__(self): diff --git a/sources/shiboken6/tests/samplebinding/overload_sorting_test.py b/sources/shiboken6/tests/samplebinding/overload_sorting_test.py index 462a44eff..df4fdc010 100644 --- a/sources/shiboken6/tests/samplebinding/overload_sorting_test.py +++ b/sources/shiboken6/tests/samplebinding/overload_sorting_test.py @@ -18,7 +18,7 @@ from sample import (CustomOverloadSequence, ImplicitBase, ImplicitConv, ImplicitTarget, SortedOverload) -class Dummy(object): +class Dummy: pass diff --git a/sources/shiboken6/tests/samplebinding/overload_test.py b/sources/shiboken6/tests/samplebinding/overload_test.py index f87e4ef57..95a313df0 100644 --- a/sources/shiboken6/tests/samplebinding/overload_test.py +++ b/sources/shiboken6/tests/samplebinding/overload_test.py @@ -179,7 +179,7 @@ class OverloadTest(unittest.TestCase): # Overload.acceptSequence(void*) overload = Overload() - class Foo(object): + class Foo: pass foo = Foo() |