Skip to content

fix: tighten TabularSampler type hints#1065

Open
aiedwardyi wants to merge 1 commit into
SeldonIO:masterfrom
aiedwardyi:fix/tabular-sampler-type-hints
Open

fix: tighten TabularSampler type hints#1065
aiedwardyi wants to merge 1 commit into
SeldonIO:masterfrom
aiedwardyi:fix/tabular-sampler-type-hints

Conversation

@aiedwardyi

Copy link
Copy Markdown

Summary

  • Make TabularSampler.__init__ type hints explicit: predictor, feature_names, and feature_values

Why

Addresses #427. Matches the style used on AnchorTabular and other explainers (Callable[[np.ndarray], np.ndarray], List[str], Dict[int, List[str]]).

@CLAassistant

CLAassistant commented Jul 18, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants