Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gpytorch.module: fix typing annotation #2611

Merged
merged 6 commits into from
Dec 6, 2024
Merged

Conversation

chrisyeh96
Copy link
Contributor

@chrisyeh96 chrisyeh96 commented Dec 2, 2024

This pull request makes 2 main changes:

  1. I made a mistake in the typing annotations in Add typing annotations to gpytorch.Module #2608, which I am correcting in this pull request. Specifically, I realized that MutableSet[str] should be MutableSet[Prior]. This pull request fixes this mistake.

  2. I updated the typing annotation for the setting_closure to have no return type (i.e., it returns None) to better match how setting closures are actually used throughout the GPyTorch codebase and examples. Previously, setting_closure was annotated with a "Self" return type, but the return value of setting_closure is never used anywhere in the GPyTorch codebase.

@gpleiss gpleiss enabled auto-merge (squash) December 6, 2024 00:31
@gpleiss
Copy link
Member

gpleiss commented Dec 6, 2024

Thanks @chrisyeh96 !

@gpleiss gpleiss merged commit bb86550 into cornellius-gp:main Dec 6, 2024
7 checks passed
@chrisyeh96 chrisyeh96 deleted the module branch December 6, 2024 05:18
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