aboutsummaryrefslogtreecommitdiffstats
path: root/bsfs/utils/commons.py
blob: bad2fe0e866493accdbba90acf179a70faae4446 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 ##