Skip to content

Commit

Permalink
mypy.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Jan 12, 2021
1 parent 273da8e commit c43532b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python-package/xgboost/sklearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ def load_model(self, fname):

def _configure_fit(
self,
booster: Optional[Booster, "XGBModel"],
booster: Optional[Union[Booster, "XGBModel"]],
eval_metric: Optional[Union[Callable, str, List[str]]],
params: Dict[str, Any],
) -> Tuple[Booster, Optional[Metric], Dict[str, Any]]:
Expand Down
2 changes: 1 addition & 1 deletion tests/python-gpu/test_gpu_with_dask.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def worker_fn(worker_addr: str, data_ref: Dict) -> None:
workers=[workers[i]]))
client.gather(futures)

def test_interface_consistency(self):
def test_interface_consistency(self) -> None:
sig = OrderedDict(signature(dxgb.DaskDMatrix).parameters)
del sig["client"]
ddm_names = list(sig.keys())
Expand Down

0 comments on commit c43532b

Please sign in to comment.