As already posted in https://github.com/microsoft/pylance-release/issues/6534, the correct type hinting fails when building a dataset using the from_parquet constructor.
Their suggestion is to comprehensively annotate the method's return type to better align with the docstring information.
Describe the bug
As already posted in https://github.com/microsoft/pylance-release/issues/6534, the correct type hinting fails when building a dataset using the
from_parquet
constructor. Their suggestion is to comprehensively annotate the method's return type to better align with the docstring information.Steps to reproduce the bug
Expected behavior
map is a valid, no error should be thrown.
Environment info
datasets
version: 3.0.1huggingface_hub
version: 0.25.1fsspec
version: 2024.6.1