From a3a25876d059f10c60f42d290a273d93ffb77d14 Mon Sep 17 00:00:00 2001 From: Edward Caunt Date: Tue, 28 May 2024 15:18:08 +0100 Subject: [PATCH] misc: Remove object where metaclasses are used --- devito/mpi/distributed.py | 2 +- devito/passes/iet/langbase.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/devito/mpi/distributed.py b/devito/mpi/distributed.py index 6baf924daea..a0af8384291 100644 --- a/devito/mpi/distributed.py +++ b/devito/mpi/distributed.py @@ -49,7 +49,7 @@ class NoneMetaclass(type): def __getattr__(self, name): return None - class MPI(object, metaclass=NoneMetaclass): + class MPI(metaclass=NoneMetaclass): init_error = e @classmethod diff --git a/devito/passes/iet/langbase.py b/devito/passes/iet/langbase.py index ca97df04bf5..0331760be89 100644 --- a/devito/passes/iet/langbase.py +++ b/devito/passes/iet/langbase.py @@ -32,7 +32,7 @@ def __getitem__(self, k): return self.mapper[k] -class LangBB(object, metaclass=LangMeta): +class LangBB(metaclass=LangMeta): """ Abstract base class for Language Building Blocks.