-
Notifications
You must be signed in to change notification settings - Fork 25
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
disable typing options for some entier classes? #116
Comments
Hi! A few quick questions:
*As of 0.6.4, if we write: from dataclasses import dataclass
import tyro
@dataclass(frozen=True)
class Child:
field: int
@dataclass(frozen=True)
class Config:
child: tyro.conf.Suppress[Child] = Child(3)
tyro.cli(Config) We shouldn't be populating (suppressed) arguments for |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello team,
thank you for the wonderful work. I am wondering if I can disable the typing options for some whole classes, where they are fixed during all the process.
For example, for data.split.chunk-split ...., I dont want them to appear to the cmd and indeed we have many many chunks, which makes the parser extremely slow.
I understand I can put Suppress[ ] as a hint but it cannot speed up the parser. Is there an alternative way?
Best
The text was updated successfully, but these errors were encountered: