From a9bfff0f8bb5ae532d0b924f4211dc8c16ec1e8a Mon Sep 17 00:00:00 2001 From: Steven Loria Date: Fri, 19 Jan 2024 08:13:44 -0500 Subject: [PATCH] Remove unused subcast argument (#323) --- CHANGELOG.md | 1 + src/environs/__init__.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f252d6..cdf0e6a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ Other changes: - Remove `subcast_key` argument of `env.dict`. Use `subcast_keys` instead. - Bump minimum required marshmallow version to 3.13.0. - Remove `missing` argument from `Env` methods. Use `default` instead. +- Remove `subcast` argument from `Env` methods that don't use it. - _Backwards-incompatible_: Remove `environs.__version__` variable. Use `importlib.metadata.version("environs")` instead. diff --git a/src/environs/__init__.py b/src/environs/__init__.py index ab84153..a9865e6 100644 --- a/src/environs/__init__.py +++ b/src/environs/__init__.py @@ -143,7 +143,6 @@ def method( self: "Env", name: str, default: typing.Any = ma.missing, - subcast: typing.Optional[typing.Type] = None, **kwargs, ) -> typing.Optional[_T]: if self._sealed: