"vscode:/vscode.git/clone" did not exist on "c44507b74bf9982902e8a21d2e06d287cae88a8d"
Unverified Commit 42df0ff3 authored by James Lamb's avatar James Lamb Committed by GitHub
Browse files

[python-package] fix mypy errors about Dataset handle (#5722)

parent 30975929
......@@ -1364,7 +1364,7 @@ class Dataset:
free_raw_data : bool, optional (default=True)
If True, raw data is freed after constructing inner Dataset.
"""
self.handle = None
self.handle: Optional[ctypes.c_void_p] = None
self.data = data
self.label = label
self.reference = reference
......
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