Skip to content

Commit

Permalink
patched type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Avrahami committed Dec 12, 2023
1 parent cbc7e7e commit c4ec5a0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 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.1
### Fixed
* fixed type hint for auto-typed env vars.
## 1.1.0
### Added
* Single env vars can now accept pydantic models and type adapters, they will be parsed as jsons.
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.0"
__version__ = "1.1.1"
8 changes: 4 additions & 4 deletions envolved/envvar.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ def env_var(
*,
type: Callable[..., T],
default: Union[T, Missing, Discard] = missing,
pos_args: Sequence[Union[EnvVar[Any], InferEnvVar[T]]],
args: Dict[str, Union[EnvVar[Any], InferEnvVar[T]]] = {}, # noqa: B006
pos_args: Sequence[Union[EnvVar[Any], InferEnvVar[Any]]],
args: Dict[str, Union[EnvVar[Any], InferEnvVar[Any]]] = {}, # noqa: B006
description: Optional[str] = None,
validators: Iterable[Callable[[T], T]] = (),
on_partial: Union[T, Missing, AsDefault, Discard] = missing,
Expand All @@ -76,8 +76,8 @@ def env_var(
*,
type: Callable[..., T],
default: Union[T, Missing, Discard] = missing,
pos_args: Sequence[Union[EnvVar[Any], InferEnvVar[T]]] = (),
args: Dict[str, Union[EnvVar[Any], InferEnvVar[T]]],
pos_args: Sequence[Union[EnvVar[Any], InferEnvVar[Any]]] = (),
args: Dict[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.0"
version = "1.1.1"
description = ""
authors = ["ben avrahami <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit c4ec5a0

Please sign in to comment.