Skip to content

Conversation

neshdev
Copy link
Member

@neshdev neshdev commented May 21, 2025

I've upgraded the deprecation message for the load_dataset function to be more informative for you.

The new message now includes:

  • A statement that load_dataset will be removed in version 1.0.0.
  • An explanation that dataset_load (the replacement) offers more flexibility and new features.
  • A clear code example showing how to migrate from the old to the new function: # OLD: load_dataset(adapter, handle, path, ...) # NEW: dataset_load(adapter, handle, path, ...)

I've also added a unit test to verify that the DeprecationWarning is triggered correctly and that the content of the warning message is as expected. The test ensures that the testing environment uses the most up-to-date version of the code by modifying sys.path and using importlib.reload.

I've upgraded the deprecation message for the `load_dataset` function to be more informative for you.

The new message now includes:
- A statement that `load_dataset` will be removed in version 1.0.0.
- An explanation that `dataset_load` (the replacement) offers more flexibility and new features.
- A clear code example showing how to migrate from the old to the new function:
  # OLD: load_dataset(adapter, handle, path, ...)
  # NEW: dataset_load(adapter, handle, path, ...)

I've also added a unit test to verify that the `DeprecationWarning` is triggered correctly and that the content of the warning message is as expected. The test ensures that the testing environment uses the most up-to-date version of the code by modifying `sys.path` and using `importlib.reload`.
@neshdev neshdev marked this pull request as draft May 21, 2025 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant