fix(types): satisfy pyright strict on the refactored facades
tracker-policy-pr / check-pr (pull_request) Successful in 13s
test / integration-docker (pull_request) Successful in 33s
test / unit (pull_request) Successful in 51s
lint / lint (push) Successful in 57s
test / integration-firecracker (pull_request) Successful in 3m25s
test / coverage (pull_request) Successful in 43s
test / publish-infra (pull_request) Has been skipped
tracker-policy-pr / check-pr (pull_request) Successful in 13s
test / integration-docker (pull_request) Successful in 33s
test / unit (pull_request) Successful in 51s
lint / lint (push) Successful in 57s
test / integration-firecracker (pull_request) Successful in 3m25s
test / coverage (pull_request) Successful in 43s
test / publish-infra (pull_request) Has been skipped
Two facade issues from the reorg:
* orchestrator/__init__.py used `__all__ = list(_LAZY)`, which pyright
strict can't analyze (reportUnsupportedDunderAll) — and because it
isn't a static literal, the TYPE_CHECKING re-export imports read as
unused. Replaced with the explicit literal list the other lazy
facades already use.
* manifest/index.py imported six piece types (ManifestAgentProvider,
EGRESS_AUTH_SCHEMES, ManifestEgressConfig/Route, ManifestGitEntry,
ManifestKeyConfig) it never referenced — the package facade re-exports
those straight from their submodules, so index.py needn't import them.
Dropped the dead imports.
pyright: 0 errors (was 24). Full unit suite green (2243).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit was merged in pull request #477.
This commit is contained in:
@@ -16,15 +16,10 @@ from typing import Mapping
|
|||||||
|
|
||||||
from ..log import warn
|
from ..log import warn
|
||||||
from .util import ManifestError, as_json_object
|
from .util import ManifestError, as_json_object
|
||||||
from .agent import ManifestAgent, ManifestAgentProvider
|
from .agent import ManifestAgent
|
||||||
from .bottle import ManifestBottle
|
from .bottle import ManifestBottle
|
||||||
from .egress import (
|
|
||||||
EGRESS_AUTH_SCHEMES,
|
|
||||||
ManifestEgressConfig,
|
|
||||||
ManifestEgressRoute,
|
|
||||||
)
|
|
||||||
from .extends import merge_bottles_runtime, resolve_bottles
|
from .extends import merge_bottles_runtime, resolve_bottles
|
||||||
from .git import ManifestGitEntry, ManifestGitUser, ManifestKeyConfig
|
from .git import ManifestGitUser
|
||||||
from .loader import (
|
from .loader import (
|
||||||
check_stale_json,
|
check_stale_json,
|
||||||
load_bottle_chain_from_dir,
|
load_bottle_chain_from_dir,
|
||||||
|
|||||||
@@ -82,4 +82,22 @@ def __getattr__(name: str) -> Any:
|
|||||||
return value
|
return value
|
||||||
|
|
||||||
|
|
||||||
__all__ = list(_LAZY)
|
__all__ = [
|
||||||
|
"BottleRecord",
|
||||||
|
"RegistryStore",
|
||||||
|
"new_identity_token",
|
||||||
|
"BrokerAuthError",
|
||||||
|
"LaunchBroker",
|
||||||
|
"LaunchRequest",
|
||||||
|
"StubBroker",
|
||||||
|
"sign_request",
|
||||||
|
"verify_request",
|
||||||
|
"DockerBroker",
|
||||||
|
"DockerBrokerError",
|
||||||
|
"Gateway",
|
||||||
|
"GatewayError",
|
||||||
|
"Orchestrator",
|
||||||
|
"OrchestratorServer",
|
||||||
|
"dispatch",
|
||||||
|
"make_server",
|
||||||
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user