-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Fix mypy errors attributed to pytorch_lightning.loggers.csv_logs.py
#13538
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
Fix mypy errors attributed to pytorch_lightning.loggers.csv_logs.py
#13538
Conversation
- add annotation in ExperimentWriter __init__ - add hints in ExperimentWriter log_metrics._handle_value - update CSVLogger __init__ - update CSVLogger root_dir return - ignore CSVLogger experiment property decorator - update CSVLogger version return type - update CSVLogger _get_next_version return type
annotated self._experiment as ExperimentWriter in CSVLogger __ init__ and changed if self._experiment to if hasattr to account for change
- improve annotations in ExperimentWriter __init__ - fix CSVLogger.log_metrics return type
awaelchli
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
To get rid of the annoying _notebooks, just do
git checkout master _notebooks
git commit ...
pytorch_lightning.loggers.csv_logs.py
akihironitta
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JustinGoheen Left minor comments. Looks good to me!
Also, the following PRs are waiting on checks, is there anything more I need to do before the remaining checks can run?
Let's wait for other reviews!
Co-authored-by: Akihiro Nitta <[email protected]>
…Lightning-AI#13538) Co-authored-by: Akihiro Nitta <[email protected]>
What does this PR do?
Fixes mypy errors attributed to pytorch_lightning.loggers.csv_logs.py for issue #13445
Fixes #<issue_number>
Does your PR introduce any breaking changes? If yes, please list them.
Before submitting
PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing, make sure you have read the review guidelines. In short, see the following bullet-list:
Did you have fun?
Make sure you had fun coding 🙃