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

[python-package] add type annotations on some array methods in basic.py #5813

Merged
merged 1 commit into from
Mar 31, 2023

Conversation

jameslamb
Copy link
Collaborator

Contributes to #3756.

This PR adds type annotations on basic._c_float_array() and basic._c_int_array(), to make it easier to understand the flow of data through the library and to improve the ability of tools like mypy to catch bugs.

How I tested this

Checked with mypy, confirmed that no new errors are introduced relative to master.

mypy --ignore-missing-imports python-package/lightgbm

@jameslamb jameslamb merged commit 6de94ef into master Mar 31, 2023
@jameslamb jameslamb deleted the ci/mypy-c-array branch March 31, 2023 17:34
@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants