Skip to content

Commit

Permalink
add hints on wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Aug 18, 2021
1 parent fbca9f4 commit a1bec4e
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 @@ -63,7 +63,7 @@ def _normalize_native_string(func: Callable[[str], None]) -> Callable[[str], Non
msg_normalized: List[str] = []

@wraps(func)
def wrapper(msg):
def wrapper(msg: str) -> None:
nonlocal msg_normalized
if msg.strip() == '':
msg = ''.join(msg_normalized)
Expand Down

0 comments on commit a1bec4e

Please sign in to comment.