Unverified Commit 77132aa7 authored by James Lamb's avatar James Lamb Committed by GitHub
Browse files

[python-package] fix mypy error about ctypes array creation (#5726)

parent 39ed8ea2
...@@ -314,7 +314,7 @@ def _c_str(string: str) -> ctypes.c_char_p: ...@@ -314,7 +314,7 @@ def _c_str(string: str) -> ctypes.c_char_p:
def _c_array(ctype: type, values: List[Any]) -> ctypes.Array: def _c_array(ctype: type, values: List[Any]) -> ctypes.Array:
"""Convert a Python array to C array.""" """Convert a Python array to C array."""
return (ctype * len(values))(*values) return (ctype * len(values))(*values) # type: ignore[operator]
def _json_default_with_numpy(obj: Any) -> Any: def _json_default_with_numpy(obj: Any) -> Any:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment