Skip to content

Commit

Permalink
changed args to mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Avrahami committed Dec 12, 2023
1 parent c4ec5a0 commit 89a0b6d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion envolved/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.1.1"
__version__ = "1.1.2"
4 changes: 2 additions & 2 deletions envolved/envvar.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "envolved"
version = "1.1.1"
version = "1.1.2"
description = ""
authors = ["ben avrahami <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 89a0b6d

Please sign in to comment.