aboutsummaryrefslogtreecommitdiffstats
path: root/bsfs
diff options
context:
space:
mode:
authorMatthias Baumgartner <dev@igsor.net>2022-12-18 13:40:49 +0100
committerMatthias Baumgartner <dev@igsor.net>2022-12-18 13:40:49 +0100
commit21a02197d73f263ae222f2ccc49248d8617e2d7d (patch)
tree089810c7808c3ae7b3c98262ece7ec36b85ef71f /bsfs
parente8492489098ef5f8566214e083cd2c2d1d449f5a (diff)
downloadbsfs-21a02197d73f263ae222f2ccc49248d8617e2d7d.tar.gz
bsfs-21a02197d73f263ae222f2ccc49248d8617e2d7d.tar.bz2
bsfs-21a02197d73f263ae222f2ccc49248d8617e2d7d.zip
project cosmetics
Diffstat (limited to 'bsfs')
-rw-r--r--bsfs/utils/uuid.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bsfs/utils/uuid.py b/bsfs/utils/uuid.py
index 7c39128..6366b18 100644
--- a/bsfs/utils/uuid.py
+++ b/bsfs/utils/uuid.py
@@ -27,7 +27,7 @@ __all__: typing.Sequence[str] = [
## code ##
-class UUID(abc.Iterator, abc.Callable):
+class UUID(abc.Iterator, abc.Callable): # type: ignore [misc] # abc.Callable "is an invalid base class"
"""Generate 256-bit universally unique IDs.
This is a 'best-effort' kind of implementation that tries to ensure global
@@ -69,7 +69,7 @@ class UUID(abc.Iterator, abc.Callable):
# initialize random component
random.seed(seed)
- def __call__(self, content: typing.Optional[str] = None) -> str:
+ def __call__(self, content: typing.Optional[str] = None) -> str: # pylint: disable=arguments-differ
"""Return a globally unique ID."""
# content component
content = str(content) if content is not None else ''
@@ -93,7 +93,7 @@ class UUID(abc.Iterator, abc.Callable):
return self()
-class UCID(abc.Callable):
+class UCID():
"""Generate 256-bit content IDs.
Effectively computes a cryptographic hash over the content.