-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(datasets): deprecate "DataSet" type names (api)
Signed-off-by: Deepyaman Datta <[email protected]>
- Loading branch information
Showing
4 changed files
with
74 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
"""``APIDataSet`` loads the data from HTTP(S) APIs | ||
"""``APIDataset`` loads the data from HTTP(S) APIs | ||
and returns them into either as string or json Dict. | ||
It uses the python requests library: https://requests.readthedocs.io/en/latest/ | ||
""" | ||
from __future__ import annotations | ||
|
||
from typing import Any | ||
|
||
import lazy_loader as lazy | ||
|
||
# https://github.com/pylint-dev/pylint/issues/4300#issuecomment-1043601901 | ||
APIDataSet: Any | ||
APIDataSet: type[APIDataset] | ||
APIDataset: Any | ||
|
||
__getattr__, __dir__, __all__ = lazy.attach( | ||
__name__, submod_attrs={"api_dataset": ["APIDataSet"]} | ||
__name__, submod_attrs={"api_dataset": ["APIDataSet", "APIDataset"]} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters