Add description
This commit is contained in:
parent
6fea75022f
commit
d9a6db63d7
|
@ -22,6 +22,10 @@ alog.setLevel(logging.DEBUG)
|
|||
|
||||
|
||||
def get_class(obj):
|
||||
"""
|
||||
Return the input if input is a class, else tryes to get the class from the
|
||||
`__class__` method.
|
||||
"""
|
||||
if type(obj) is type:
|
||||
return obj
|
||||
return obj.__class__
|
||||
|
|
Loading…
Reference in New Issue
Block a user