Skip to content

Commit 63961f4

Browse files
committed
Fix typing annotation of categorical_features
It is a Union[List[str], 'auto']
1 parent c3f221f commit 63961f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fklearn/training/classification.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import List, Any
1+
from typing import List, Any, Union
22

33
import numpy as np
44
import pandas as pd
@@ -502,7 +502,7 @@ def lgbm_classification_learner(df: pd.DataFrame,
502502
learning_rate: float = 0.1,
503503
num_estimators: int = 100,
504504
extra_params: LogType = None,
505-
categorical_features: List[str] = "auto",
505+
categorical_features: Union[List[str], "auto"] = "auto",
506506
prediction_column: str = "prediction",
507507
weight_column: str = None,
508508
encode_extra_cols: bool = True) -> LearnerReturnType:

0 commit comments

Comments
 (0)