reprospect.test.environment module
- class reprospect.test.environment.EnvironmentField(env: str | None = None, converter: Callable[[str], T] | None = None, default: T | None = None)View on GitHub
-
Descriptor that returns a value lazily read from an environment variable.
Based on:
- __init__(env: str | None = None, converter: Callable[[str], T] | None = None, default: T | None = None) None
- converter: Callable[[str], T] | None
Callable to convert the value of the environment variable to the target type.
- read(instance, owner) TView on GitHub
Read from the environment.
- reset() NoneView on GitHub
Reset, thus forcing a re-read from environment on next access.
- class reprospect.test.environment.T
Type variable for
EnvironmentFieldand related generics.alias of TypeVar(‘T’)