diff --git a/poetry.lock b/poetry.lock index 4d397228..79f819f3 100644 --- a/poetry.lock +++ b/poetry.lock @@ -564,15 +564,15 @@ zstd = ["zstandard (>=0.18.0)"] [[package]] name = "hypothesis" -version = "6.130.3" +version = "6.130.4" description = "A library for property-based testing" optional = true python-versions = ">=3.9" groups = ["main"] markers = "extra == \"check-laws\"" files = [ - {file = "hypothesis-6.130.3-py3-none-any.whl", hash = "sha256:3dd7f2724ebbd81f4b8fbcd5714ef5f7476cdfd48320e449f0b8289f1b696028"}, - {file = "hypothesis-6.130.3.tar.gz", hash = "sha256:b8223c195f31e4bfcd9ad02211d50a5b8ff4fc0413780976e8e9947581ec8fbb"}, + {file = "hypothesis-6.130.4-py3-none-any.whl", hash = "sha256:cda4a57115d10ecbefe0a9cc8d69d20a13eb56ecbfe7c24eaee5d368c2b7c477"}, + {file = "hypothesis-6.130.4.tar.gz", hash = "sha256:d0672eb0ac1060b0324b0e43925a50b2bef1c60a32739bb9233000d85838436a"}, ] [package.dependencies] @@ -1848,20 +1848,20 @@ zstd = ["zstandard (>=0.18.0)"] [[package]] name = "wemake-python-styleguide" -version = "1.0.0" +version = "1.1.0" description = "The strictest and most opinionated python linter ever" optional = false python-versions = "<4.0,>=3.10" groups = ["dev"] files = [ - {file = "wemake_python_styleguide-1.0.0-py3-none-any.whl", hash = "sha256:c0cc3fe2a2aa8d7ca76f02bc27bfe344c76ed9652f94859c241b96f0fcefa9ac"}, - {file = "wemake_python_styleguide-1.0.0.tar.gz", hash = "sha256:00e96dc73faf5471b21d4baa5041f457c19739cf14677832429be69e5f4f7964"}, + {file = "wemake_python_styleguide-1.1.0-py3-none-any.whl", hash = "sha256:32644cf35f6cd4c49c2d36e7b10336f8fe105250ba79365e27c5fa648bfc0616"}, + {file = "wemake_python_styleguide-1.1.0.tar.gz", hash = "sha256:a9086e4867560c06fe47deb2101c72d1a1fd7ecb7a3235b297b6e02e9298e71e"}, ] [package.dependencies] attrs = "*" flake8 = ">=7.1,<8.0" -pygments = ">=2.4,<3.0" +pygments = ">=2.5,<3.0" [extras] check-laws = ["hypothesis", "pytest"] @@ -1870,4 +1870,4 @@ compatible-mypy = ["mypy"] [metadata] lock-version = "2.1" python-versions = "^3.10" -content-hash = "70cacda4bfa9997a464d80ac1c6a05228af3cec47151e969792467ec97182b64" +content-hash = "19e8f71518210e007370eda3e412a4f383c828d3e97384d37e5be55c7b53f7a7" diff --git a/pyproject.toml b/pyproject.toml index 31954092..01e570fe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -62,7 +62,7 @@ trio = ">=0.28,<0.30" attrs = ">=24.2,<26.0" httpx = "^0.28" -wemake-python-styleguide = "^1.0" +wemake-python-styleguide = "^1.1" codespell = "^2.2" slotscheck = "^0.19" ruff = "^0.11" diff --git a/returns/future.py b/returns/future.py index ecee5cf4..4c721644 100644 --- a/returns/future.py +++ b/returns/future.py @@ -1170,7 +1170,8 @@ def __aiter__(self) -> AsyncIterator[_ValueType_co]: # noqa: WPS611 """API for :ref:`do-notation`.""" async def factory() -> AsyncGenerator[_ValueType_co, None]: - for inner_value in await self._inner_value: + inner_values = await self._inner_value + for inner_value in inner_values: yield inner_value # will only yield once return factory() diff --git a/setup.cfg b/setup.cfg index 315984f4..67e60012 100644 --- a/setup.cfg +++ b/setup.cfg @@ -64,7 +64,7 @@ per-file-ignores = # Allow class attributes literals for slots and setattr: returns/primitives/container.py: WPS226 # There are multiple assert's in tests: - tests/*.py: S101, WPS204, WPS218, WPS226, WPS432, WPS436 + tests/*.py: S101, WPS204, WPS218, WPS226, WPS432, WPS436, WPS476 # Some examples don't have any docs on purpose: tests/test_examples/*: D102 # Pattern matching, flake8 and friends are not ready to deal with it