From fd3383bcb27f7b0749f8396f47279761514d4992 Mon Sep 17 00:00:00 2001 From: z3z1ma Date: Tue, 16 Jul 2024 18:26:46 -0700 Subject: [PATCH] chore: add exports for injector module --- src/cdf/injector/__init__.py | 28 +++++++++++++++++++++++++++- tests/injector/test_config.py | 1 - tests/injector/test_container.py | 1 - 3 files changed, 27 insertions(+), 3 deletions(-) diff --git a/src/cdf/injector/__init__.py b/src/cdf/injector/__init__.py index cdeb47d..4526aa5 100644 --- a/src/cdf/injector/__init__.py +++ b/src/cdf/injector/__init__.py @@ -1,4 +1,3 @@ -# flake8: noqa from cdf.injector.config import Config as Config from cdf.injector.config import get_config as get_config from cdf.injector.container import ConfigProxy as ConfigProxy @@ -23,3 +22,30 @@ from cdf.injector.specs import SingletonTuple as SingletonTuple from cdf.injector.specs import Spec as Spec from cdf.injector.specs import SpecID as SpecID + +__all__ = [ + "Config", + "get_config", + "ConfigProxy", + "Container", + "get_container", + "ConfigError", + "FrozenConfigError", + "InputConfigError", + "NewKeyConfigError", + "PerturbSpecError", + "SetChildConfigError", + "Forward", + "GlobalInput", + "LocalInput", + "Object", + "Prototype", + "PrototypeMixin", + "Singleton", + "SingletonDict", + "SingletonList", + "SingletonMixin", + "SingletonTuple", + "Spec", + "SpecID", +] diff --git a/tests/injector/test_config.py b/tests/injector/test_config.py index 8e2e406..3231e7e 100644 --- a/tests/injector/test_config.py +++ b/tests/injector/test_config.py @@ -1,4 +1,3 @@ -# mypy: disable-error-code="comparison-overlap" from __future__ import annotations import dataclasses diff --git a/tests/injector/test_container.py b/tests/injector/test_container.py index 9fe3095..1c778ca 100644 --- a/tests/injector/test_container.py +++ b/tests/injector/test_container.py @@ -1,4 +1,3 @@ -# mypy: disable-error-code="comparison-overlap" from __future__ import annotations from typing import Any, TypeVar, cast