Skip to content

Commit

Permalink
chore: add exports for injector module
Browse files Browse the repository at this point in the history
  • Loading branch information
z3z1ma committed Jul 17, 2024
1 parent 65c1c54 commit fd3383b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
28 changes: 27 additions & 1 deletion src/cdf/injector/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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",
]
1 change: 0 additions & 1 deletion tests/injector/test_config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# mypy: disable-error-code="comparison-overlap"
from __future__ import annotations

import dataclasses
Expand Down
1 change: 0 additions & 1 deletion tests/injector/test_container.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# mypy: disable-error-code="comparison-overlap"
from __future__ import annotations

from typing import Any, TypeVar, cast
Expand Down

0 comments on commit fd3383b

Please sign in to comment.