Unverified Commit 1ccc7d41 authored by James Lamb's avatar James Lamb Committed by GitHub
Browse files

[ci] [python-package] fix mypy error in Dataset.set_categorical_feature() (#5883)

parent a2c1dec0
...@@ -2478,7 +2478,7 @@ class Dataset: ...@@ -2478,7 +2478,7 @@ class Dataset:
else: else:
if self.categorical_feature != 'auto': if self.categorical_feature != 'auto':
_log_warning('categorical_feature in Dataset is overridden.\n' _log_warning('categorical_feature in Dataset is overridden.\n'
f'New categorical_feature is {sorted(list(categorical_feature))}') f'New categorical_feature is {list(categorical_feature)}')
self.categorical_feature = categorical_feature self.categorical_feature = categorical_feature
return self._free_handle() return self._free_handle()
else: else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment