Skip to content

Commit 163ffaf

Browse files
q0wdependabot[bot]sobolevn
authored
Issue-1174 (#1175)
* Bump wemake-python-styleguide from 0.15.3 to 0.16.0 Bumps [wemake-python-styleguide](https://github.com/wemake-services/wemake-python-styleguide) from 0.15.3 to 0.16.0. - [Release notes](https://github.com/wemake-services/wemake-python-styleguide/releases) - [Changelog](https://github.com/wemake-services/wemake-python-styleguide/blob/master/CHANGELOG.md) - [Commits](wemake-services/wemake-python-styleguide@0.15.3...0.16.0) --- updated-dependencies: - dependency-name: wemake-python-styleguide dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Fix lint errors * Update returns/result.py Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
1 parent 6e99a3d commit 163ffaf

File tree

4 files changed

+12
-13
lines changed

4 files changed

+12
-13
lines changed

poetry.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ attrs = "^21.2"
6666
httpx = "^0.21"
6767

6868
mypy = "^0.910"
69-
wemake-python-styleguide = "^0.15"
69+
wemake-python-styleguide = "^0.16"
7070
flake8-pytest-style = "^1.5"
7171
flake8-pyi = "^20.10"
7272
# TODO: Remove this restriction when `ruamel.yaml.clib` works

returns/contrib/pytest/plugin.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def _spy_error_handling() -> Iterator[_ErrorsHandled]:
152152

153153

154154
# delayed imports are needed to prevent messing up coverage
155-
def _containers_to_patch() -> tuple:
155+
def _containers_to_patch() -> list:
156156
from returns.context import (
157157
RequiresContextFutureResult,
158158
RequiresContextIOResult,
@@ -162,7 +162,7 @@ def _containers_to_patch() -> tuple:
162162
from returns.io import IOFailure, IOSuccess
163163
from returns.result import Failure, Success
164164

165-
return (
165+
return [
166166
Success,
167167
Failure,
168168
IOSuccess,
@@ -171,7 +171,7 @@ def _containers_to_patch() -> tuple:
171171
RequiresContextIOResult,
172172
RequiresContextFutureResult,
173173
FutureResult,
174-
)
174+
]
175175

176176

177177
def _patched_error_handler(

returns/result.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,6 @@ def failure(self) -> _ErrorType:
372372

373373
def _get_trace(self) -> Optional[List[FrameInfo]]:
374374
"""Method that will be monkey patched when trace is active."""
375-
return None # noqa: WPS324
376375

377376

378377
@final

0 commit comments

Comments
 (0)