-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[python] add more type hints on LGBMModel methods #5239
Conversation
Most of these changes raise errors on mypy (logs):
Although I believe the if statement is enough to check that most of them aren't |
I remember the following discussion about these mypy false alarms: #4837 (review), #4837 (comment). |
Thanks for finding those links @StrikerRUS ! I remembered those conversations before, and am ok with the conclusion we reached there, that I didn't add such comments in this PR because I just wanted to focus on getting the type hints correct, and wanted to leave |
Great, totally agree! |
This pull request has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this. |
Contributes to #3756.
Adds type hints on some methods in
lightgbm.sklearn.LGBMModel
that don't currently have them.