-
Notifications
You must be signed in to change notification settings - Fork 37
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
add typehints to Live's public methods #770
Conversation
28e370b
to
c0292cc
Compare
@dberenbaum Thanks for the feedback. I'll take your suggestions into account. |
π€ Good point. I don't know a way, but might be worth a little research. If you think it's helpful to have the more explicit types, I'm fine to keep them that way. |
- Removes redundancy with types import - strPath is now using PurePath instead of Path
I asked the question to tech people; we'll see. I believe it will take more effort to maintain, but it will be way more user-friendly to have a list of possible plots like You see my point, I guess, we just need to figure out own much a pain it will be to maintain to know if it is worth it :) |
As mentioned by @jonburdo, I take back importing from elsewhere for type checking. It seems like an anti-pattern with more thought, and we are better off listing the choices or probably even just leaving the type hints more general for now. |
I agree with you two after the explanation from @jonburdo. I still believe the user-facing functions should have a clear and readable type from the editor. But it is not an urgent matter, and we can always get back at it later. |
@AlexandreKempf Could you check the CI failures? |
I think you're right for a relatively short list like this. I sometimes take a look at other popular libraries for questions like this. Running |
Thanks for the advice @jonburdo. What do you think about that @dberenbaum? |
Yes, I don't think it's worth worrying about the maintenance costs at this point |
β I have followed the Contributing to DVCLive
guide.
π If this PR requires documentation updates, I have created a separate PR (or issue, at least) in dvc.org and linked it here. fixes various typos and updates docΒ dvc.org#5103
Thank you for the contribution - we'll try to review it as soon as possible. π