Skip to content

type hint fixes Iterable[Kernel] -> Kernel#2678

Merged
Balandat merged 1 commit into
cornellius-gp:mainfrom
kayween:additive-kernel-type-hints
Nov 14, 2025
Merged

type hint fixes Iterable[Kernel] -> Kernel#2678
Balandat merged 1 commit into
cornellius-gp:mainfrom
kayween:additive-kernel-type-hints

Conversation

@kayween

@kayween kayween commented Nov 14, 2025

Copy link
Copy Markdown
Collaborator

This PR fixes #2676, i.e., the type hint errors in the constructors of AdditiveKernel and ProductKernel.

I did a grep search, and it seems that there are no types mistakenly annotated as Iterable[Kernel] anymore. In the future, these type errors would be spotted more easily if we enforce strict type checking.

@kayween
kayween requested a review from gpleiss November 14, 2025 19:34

@Balandat Balandat left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

@Balandat
Balandat force-pushed the additive-kernel-type-hints branch from 05850c4 to d320315 Compare November 14, 2025 21:02
@Balandat
Balandat enabled auto-merge November 14, 2025 21:02
@Balandat
Balandat merged commit 503c557 into cornellius-gp:main Nov 14, 2025
7 checks passed
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.

[Bug] Type hinting mistake of star expressions e.g. in AdditiveKernel

2 participants