mirror of
https://github.com/clearml/clearml
synced 2025-01-31 09:07:00 +00:00
Black formatting
This commit is contained in:
parent
dfb8e901d6
commit
a02a114bd9
@ -11,12 +11,12 @@ if TYPE_CHECKING:
|
|||||||
|
|
||||||
|
|
||||||
def get_items(cls):
|
def get_items(cls):
|
||||||
""" get key/value items from an enum-like class (members represent enumeration key/value) """
|
"""get key/value items from an enum-like class (members represent enumeration key/value)"""
|
||||||
return {k: v for k, v in vars(cls).items() if not k.startswith('_')}
|
return {k: v for k, v in vars(cls).items() if not k.startswith("_")}
|
||||||
|
|
||||||
|
|
||||||
def get_options(cls):
|
def get_options(cls):
|
||||||
""" get options from an enum-like class (members represent enumeration key/value) """
|
"""get options from an enum-like class (members represent enumeration key/value)"""
|
||||||
return get_items(cls).values()
|
return get_items(cls).values()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user