Skip to content

Commit

Permalink
[python] add type hints to _safe_call (#4641)
Browse files Browse the repository at this point in the history
Co-authored-by: strobel <[email protected]>
Co-authored-by: Nikita Titov <[email protected]>
  • Loading branch information
3 people authored Oct 7, 2021
1 parent df8c10b commit 7fa07ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python-package/lightgbm/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def _load_lib():
NUMERIC_TYPES = (int, float, bool)


def _safe_call(ret):
def _safe_call(ret: int) -> None:
"""Check the return value from C API call.
Parameters
Expand Down

0 comments on commit 7fa07ee

Please sign in to comment.