aboutsummaryrefslogtreecommitdiffstats
path: root/bsfs/utils/commons.py
diff options
context:
space:
mode:
Diffstat (limited to 'bsfs/utils/commons.py')
-rw-r--r--bsfs/utils/commons.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/bsfs/utils/commons.py b/bsfs/utils/commons.py
new file mode 100644
index 0000000..bad2fe0
--- /dev/null
+++ b/bsfs/utils/commons.py
@@ -0,0 +1,23 @@
+"""
+
+Part of the BlackStar filesystem (bsfs) module.
+A copy of the license is provided with the project.
+Author: Matthias Baumgartner, 2022
+"""
+# imports
+import typing
+
+# exports
+__all__: typing.Sequence[str] = (
+ 'typename',
+ )
+
+
+## code ##
+
+def typename(obj) -> str:
+ """Return the type name of *obj*."""
+ return type(obj).__name__
+
+
+## EOF ##