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
6 changes: 3 additions & 3 deletions src/adcp/migrate/v3_to_v4.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@
# the rewrite is a prefix rename, with one exception: a root discovery schema
# whose basename collided with a task-schema directory split into
# ``<stem>_discovery`` (its own classes) and ``<stem>`` (the aggregator).
# ``adcp.types._generated_poc_alias`` is the runtime half of the same contract.
# 9.x also served the old path at runtime through a deprecation alias; v10
# removed it, so this codemod is now the only migration path.
DEPRECATED_TYPES_ROOT = "adcp.types.generated_poc"
CANONICAL_TYPES_ROOT = "adcp.types.domains"
ROOT_DISCOVERY_SUFFIX = "_discovery"
Expand All @@ -167,8 +168,7 @@ def _split_halves(stem: str) -> tuple[str, str] | None:
Answered by what the installed SDK ships rather than a table here, so a
schema added to ``scripts/generate_types.py``'s ``ROOT_DISCOVERY_SCHEMAS``
tomorrow is resolved without touching this file. The ``_discovery`` suffix is
the generator's own, the same one ``adcp.types._generated_poc_alias`` serves
at runtime; ``tests/test_migrate_v3_to_v4.py`` pins the two spellings equal.
the generator's own (``scripts/generate_types.py``).
"""
if not stem or "." in stem:
return None
Expand Down
9 changes: 0 additions & 9 deletions src/adcp/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,10 @@ class name, or a numbered variant has no semantic alias — import it by its
import importlib.util
from typing import TYPE_CHECKING

from adcp.types import _generated_poc_alias

# Serves the pre-9.0 ``adcp.types.generated_poc.*`` paths from the modules they
# moved to, as the SAME module objects, with a ``DeprecationWarning``. Removed
# in v10. Installing a finder imports no generated module, so this costs the
# lazy surface nothing.
_generated_poc_alias.install()

__pdoc__ = {
"generated_poc": False,
"mypy_plugin": False,
"_eager": False,
"_generated_poc_alias": False,
}

__all__ = [
Expand Down
291 changes: 0 additions & 291 deletions src/adcp/types/_generated_poc_alias.py

This file was deleted.

Loading
Loading