Skip to content

Commit

Permalink
Add typing hints
Browse files Browse the repository at this point in the history
  • Loading branch information
FanwangM committed Oct 6, 2024
1 parent a7de226 commit fafc517
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion selector/methods/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

import warnings
from abc import ABC, abstractmethod
from typing import List, Iterable, Union

import numpy as np

Expand All @@ -40,7 +41,7 @@ def select(
size: int,
labels: np.ndarray = None,
proportional_selection: bool = True,
) -> list:
) -> Union[List, Iterable]:
"""Return indices representing subset of sample points.
Parameters
Expand Down

0 comments on commit fafc517

Please sign in to comment.