diff options
author | Iwan Aucamp <aucampia@gmail.com> | 2023-04-10 12:08:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-10 12:08:55 +0200 |
commit | 20f1235d5f3b639a47cad59967fe93ed9e41dd90 (patch) | |
tree | cf9bf2744c8d836101bea0ef1a8472bcf59695fe /rdflib/store.py | |
parent | 61f8a8d16a0812a6ebbe13ccaa3557f9fc4d0618 (diff) | |
download | rdflib-20f1235d5f3b639a47cad59967fe93ed9e41dd90.tar.gz |
refactor: eliminate inheritance from object (#2339)
This change removes the redundant inheritance from `object` (i.e. `class
Foo(object): pass`) that is no longer needed in Python 3 and is a relic from
Python 2.
Diffstat (limited to 'rdflib/store.py')
-rw-r--r-- | rdflib/store.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rdflib/store.py b/rdflib/store.py index ca6f9261..e3c9f7ab 100644 --- a/rdflib/store.py +++ b/rdflib/store.py @@ -113,7 +113,7 @@ class TripleRemovedEvent(Event): """ -class NodePickler(object): +class NodePickler: def __init__(self) -> None: self._objects: Dict[str, Any] = {} self._ids: Dict[Any, str] = {} @@ -165,7 +165,7 @@ class NodePickler(object): self._get_object = self._objects.__getitem__ -class Store(object): +class Store: # Properties context_aware: bool = False formula_aware: bool = False |