PageIndex/pageindex/utils.py
Ray 7b23cd9f8c fix: drop deprecation warnings from the top-level module shims
Same adjudication as the client methods (42d57b6): pageindex.utils is
the documented 0.2.8 location, and the top-level modules are permanent
compatibility surface — "will be removed in a future release" was not
true. The shims stay; only the import-time warnings go.
2026-07-24 01:08:03 +08:00

8 lines
514 B
Python

# pageindex/utils.py
# Compatibility shim. The indexing utilities now live in pageindex/index/utils.py,
# which is the single source of truth. This module re-exports them so legacy
# imports (`from pageindex.utils import ...`) keep working.
from .index.utils import * # noqa: F401,F403,E402
# Legacy 0.2.x alias. index.utils keeps it private (_config) so its star-export
# can't shadow the pageindex.config submodule; re-expose it only in this shim.
from types import SimpleNamespace as config # noqa: E402,F401