Run black

This commit is contained in:
c-bata
2020-10-27 03:01:52 +09:00
parent b2038f17cc
commit 796b576644
2 changed files with 22 additions and 13 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ from optuna.study import StudyDirection, StudySummary
from . import serializer
F = TypeVar('F', bound=Callable[..., Any])
F = TypeVar("F", bound=Callable[..., Any])
logger = logging.getLogger(__name__)
+21 -12
View File
@@ -5,18 +5,27 @@ from optuna.study import StudySummary
from optuna.trial import FrozenTrial
Attribute = TypedDict("Attribute", {
"key": str,
"value": str,
})
IntermediateValue = TypedDict("IntermediateValue", {
"step": int,
"value": float,
})
TrialParam = TypedDict("TrialParam", {
"name": str,
"value": str,
})
Attribute = TypedDict(
"Attribute",
{
"key": str,
"value": str,
},
)
IntermediateValue = TypedDict(
"IntermediateValue",
{
"step": int,
"value": float,
},
)
TrialParam = TypedDict(
"TrialParam",
{
"name": str,
"value": str,
},
)
def serialize_attrs(attrs: Dict[str, Any]) -> List[Attribute]: