Skip to content

Commit 3e31e8d

Browse files
Merge pull request optuna#5706 from y0z/feature/fix-for-mypy
Fix for mypy.
2 parents 12c2744 + b49276a commit 3e31e8d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

optuna/_convert_positional_args.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def converter_wrapper(*args: Any, **kwargs: Any) -> "_T":
8080

8181
kwargs.update(inferred_kwargs)
8282

83-
return func(**kwargs)
83+
return func(**kwargs) # type: ignore[call-arg]
8484

8585
return converter_wrapper
8686

optuna/study/study.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1091,7 +1091,7 @@ def _should_skip_enqueue(self, params: Mapping[str, JSONSerializable]) -> bool:
10911091
if isinstance(param_value, Real)
10921092
else param_value == existing_param
10931093
)
1094-
repeated_params.append(is_repeated)
1094+
repeated_params.append(bool(is_repeated))
10951095

10961096
if all(repeated_params):
10971097
return True

0 commit comments

Comments
 (0)