Skip to content

Commit

Permalink
Remove Self reference as it's not 3.9 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
PGijsbers committed Sep 8, 2024
1 parent 7799c90 commit 874b407
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions amlb/datautils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

import logging
import os
from typing import Iterable, Type, Literal, Any, Callable, Self, Tuple, cast, TypeAlias
from typing import Iterable, Type, Literal, Any, Callable, Tuple, cast, TypeAlias

import arff
import numpy as np
Expand Down Expand Up @@ -221,7 +221,7 @@ def _encode_missing(self) -> bool:
def _reshape(self, vec: np.ndarray) -> np.ndarray:
return vec if self.for_target else vec.reshape(-1, 1)

def fit(self, vector: Iterable[str] | None) -> Self:
def fit(self, vector: Iterable[str] | None) -> 'Encoder':
"""
:param vector: must be a line vector (array)
:return:
Expand Down

0 comments on commit 874b407

Please sign in to comment.