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

Make all Switch inputs optional #2867

Merged
merged 2 commits into from
May 18, 2024

Conversation

RunDevelopment
Copy link
Member

I made the A and B inputs optional, because this makes the Switch node easier to use. Whether users switch A and B or C and D doesn't matter, so why should we force users to have a connection to A and B?

This change doesn't affect correctness, because the type system already ensure that users don't select an input without a value.

joeyballentine
joeyballentine previously approved these changes May 18, 2024
@joeyballentine joeyballentine merged commit 202c9a5 into chaiNNer-org:main May 18, 2024
14 checks passed
@RunDevelopment RunDevelopment deleted the opt-switch branch May 18, 2024 17:11
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