Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/atdata/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def __getattr__(name: str):
warnings.warn(
"atdata.AbstractIndex is deprecated. Use atdata.Index directly "
"as the type annotation instead.",
DeprecationWarning,
FutureWarning, # Removal: v1.0
stacklevel=2,
)
from ._protocols import AbstractIndex
Expand All @@ -174,7 +174,7 @@ def schema_to_type(schema: dict, *, use_cache: bool = True):

warnings.warn(
"atdata.schema_to_type() is deprecated, use index.get_schema_type() instead",
DeprecationWarning,
FutureWarning, # Removal: v1.0
stacklevel=2,
)
return _schema_to_type(schema, use_cache=use_cache)
2 changes: 1 addition & 1 deletion src/atdata/_schema_codec.py
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ def schema_to_type(

warnings.warn(
"schema_to_type() is deprecated, use index.get_schema_type() instead",
DeprecationWarning,
FutureWarning, # Removal: v1.0
stacklevel=2,
)
return _schema_to_type(schema, use_cache=use_cache)
Expand Down
4 changes: 2 additions & 2 deletions src/atdata/_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def shard_list(self) -> list[str]:

warnings.warn(
"shard_list is deprecated, use list_shards()",
DeprecationWarning,
FutureWarning, # Removal: v1.0
stacklevel=2,
)
return self.list_shards()
Expand Down Expand Up @@ -199,7 +199,7 @@ def shard_list(self) -> list[str]:

warnings.warn(
"shard_list is deprecated, use list_shards()",
DeprecationWarning,
FutureWarning, # Removal: v1.0
stacklevel=2,
)
return self.list_shards()
Expand Down
Loading
Loading