From 4de1714cec2c8cca319ce2307963682dc55e82e0 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Thu, 21 Sep 2023 18:32:24 +0200 Subject: [PATCH] In Python 3, classes inherit object implicitly No need to inherit (object) explicitly. --- fsspec/caching.py | 2 +- fsspec/gui.py | 2 +- fsspec/implementations/smb.py | 2 +- fsspec/transaction.py | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/fsspec/caching.py b/fsspec/caching.py index 6d067433b..6461f76f7 100644 --- a/fsspec/caching.py +++ b/fsspec/caching.py @@ -10,7 +10,7 @@ logger = logging.getLogger("fsspec") -class BaseCache(object): +class BaseCache(): """Pass-though cache: doesn't keep anything, calls every time Acts as base class for other cachers diff --git a/fsspec/gui.py b/fsspec/gui.py index bbc450c77..e7a68e727 100644 --- a/fsspec/gui.py +++ b/fsspec/gui.py @@ -14,7 +14,7 @@ logger = logging.getLogger("fsspec.gui") -class SigSlot(object): +class SigSlot(): """Signal-slot mixin, for Panel event passing Include this class in a widget manager's superclasses to be able to diff --git a/fsspec/implementations/smb.py b/fsspec/implementations/smb.py index 0a83e582c..881253618 100644 --- a/fsspec/implementations/smb.py +++ b/fsspec/implementations/smb.py @@ -274,7 +274,7 @@ def _share_has_path(path): return parts > 1 -class SMBFileOpener(object): +class SMBFileOpener(): """writes to remote temporary file, move on commit""" def __init__(self, path, temp, mode, port=445, block_size=-1, **kwargs): diff --git a/fsspec/transaction.py b/fsspec/transaction.py index df98353d5..649f31649 100644 --- a/fsspec/transaction.py +++ b/fsspec/transaction.py @@ -1,4 +1,4 @@ -class Transaction(object): +class Transaction(): """Filesystem transaction write context Gathers files for deferred commit or discard, so that several write @@ -41,7 +41,7 @@ def complete(self, commit=True): self.fs._intrans = False -class FileActor(object): +class FileActor(): def __init__(self): self.files = []