Skip to content

Commit

Permalink
hints
Browse files Browse the repository at this point in the history
  • Loading branch information
deadsoul44 committed Aug 1, 2024
1 parent 65541fb commit 207e6bc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions python-package/python/perpetual/booster.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import inspect
import json
from typing import Any, Dict, Iterable, List, Optional, Tuple, Union, cast
from typing_extensions import Self
import inspect
import warnings
from typing_extensions import Self
from typing import Any, Dict, Iterable, List, Optional, Tuple, Union, cast

import numpy as np

from perpetual.perpetual import PerpetualBooster as CratePerpetualBooster # type: ignore
from perpetual.perpetual import MultiOutputBooster as CrateMultiOutputBooster # type: ignore
from perpetual.serialize import BaseSerializer, ObjectSerializer
import numpy as np

from perpetual.types import BoosterType, MultiOutputBoosterType
from perpetual.data import Node
from perpetual.utils import (
Expand Down Expand Up @@ -244,7 +244,7 @@ def fit(

return self

def _validate_features(self, features: list[str]):
def _validate_features(self, features: List[str]):
if len(features) > 0 and hasattr(self, "feature_names_in_"):
if features[0] != "0" and self.feature_names_in_[0] != "0":
if features != self.feature_names_in_:
Expand Down

0 comments on commit 207e6bc

Please sign in to comment.