diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b31f56..0db240c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ # envolved Changelog +## 1.1.2 +### Fixed +* changed type of `args` to be an invariant `Mapping` instead of a `dict` ## 1.1.1 ### Fixed * fixed type hint for auto-typed env vars. diff --git a/envolved/_version.py b/envolved/_version.py index a82b376..72f26f5 100644 --- a/envolved/_version.py +++ b/envolved/_version.py @@ -1 +1 @@ -__version__ = "1.1.1" +__version__ = "1.1.2" diff --git a/envolved/envvar.py b/envolved/envvar.py index 0584f59..d16099b 100644 --- a/envolved/envvar.py +++ b/envolved/envvar.py @@ -62,7 +62,7 @@ def env_var( type: Callable[..., T], default: Union[T, Missing, Discard] = missing, pos_args: Sequence[Union[EnvVar[Any], InferEnvVar[Any]]], - args: Dict[str, Union[EnvVar[Any], InferEnvVar[Any]]] = {}, # noqa: B006 + args: Mapping[str, Union[EnvVar[Any], InferEnvVar[Any]]] = {}, description: Optional[str] = None, validators: Iterable[Callable[[T], T]] = (), on_partial: Union[T, Missing, AsDefault, Discard] = missing, @@ -77,7 +77,7 @@ def env_var( type: Callable[..., T], default: Union[T, Missing, Discard] = missing, pos_args: Sequence[Union[EnvVar[Any], InferEnvVar[Any]]] = (), - args: Dict[str, Union[EnvVar[Any], InferEnvVar[Any]]], + args: Mapping[str, Union[EnvVar[Any], InferEnvVar[Any]]], description: Optional[str] = None, validators: Iterable[Callable[[T], T]] = (), on_partial: Union[T, Missing, AsDefault, Discard] = missing, diff --git a/pyproject.toml b/pyproject.toml index 9853861..89d7521 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "envolved" -version = "1.1.1" +version = "1.1.2" description = "" authors = ["ben avrahami "] license = "MIT"