Skip to content

Commit 053ce81

Browse files
authored
Update WPS to 0.19 (#1816)
1 parent e409faa commit 053ce81

File tree

17 files changed

+136
-160
lines changed

17 files changed

+136
-160
lines changed

poetry.lock

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

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ trio = ">=0.24,<0.26"
5959
attrs = "^23.2"
6060
httpx = "^0.27"
6161

62-
wemake-python-styleguide = "^0.18"
62+
wemake-python-styleguide = "^0.19"
6363
flake8-pytest-style = "^1.6"
6464
flake8-pyi = "^24.1"
6565
nitpick = "^0.35"
6666
codespell = "^2.2"
67-
slotscheck = ">=0.17,<0.19"
67+
slotscheck = "0.18"
6868

6969
pytest-cov = ">=4.1,<6.0"
7070
pytest-randomly = "^3.12"

returns/contrib/mypy/_features/curry.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def analyze(ctx: FunctionContext) -> MypyType:
3131

3232

3333
@final
34-
class _ArgTree(object):
34+
class _ArgTree:
3535
"""Represents a node in tree of arguments."""
3636

3737
def __init__(self, case: Optional[CallableType]) -> None:
@@ -40,7 +40,7 @@ def __init__(self, case: Optional[CallableType]) -> None:
4040

4141

4242
@final
43-
class _CurryFunctionOverloads(object):
43+
class _CurryFunctionOverloads:
4444
"""
4545
Implementation of ``@curry`` decorator typings.
4646

returns/contrib/mypy/_features/partial.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def analyze(ctx: FunctionContext) -> MypyType:
6767

6868

6969
@final
70-
class _PartialFunctionReducer(object):
70+
class _PartialFunctionReducer:
7171
"""
7272
Helper object to work with curring.
7373
@@ -203,7 +203,7 @@ def _create_new_partial(self) -> MypyType:
203203

204204

205205
@final
206-
class _AppliedArgs(object):
206+
class _AppliedArgs:
207207
"""Builds applied args that were partially applied."""
208208

209209
def __init__(self, function_ctx: FunctionContext) -> None:

returns/contrib/mypy/_typeops/inference.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919

2020
@final
21-
class CallableInference(object):
21+
class CallableInference:
2222
"""
2323
Used to infer function arguments and return type.
2424
@@ -93,7 +93,7 @@ def _infer_constraints(
9393

9494

9595
@final
96-
class PipelineInference(object):
96+
class PipelineInference:
9797
"""
9898
Very helpful tool to work with functions like ``flow`` and ``pipe``.
9999

returns/contrib/mypy/_typeops/transform_callable.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def proper_type(
1919

2020

2121
@final
22-
class Intermediate(object):
22+
class Intermediate:
2323
"""
2424
Allows to build a new callable from old one and different options.
2525
@@ -98,7 +98,7 @@ def _applied_named_args(
9898

9999

100100
@final
101-
class Functions(object):
101+
class Functions:
102102
"""
103103
Allows to create new callables based on two existing ones.
104104

returns/contrib/pytest/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141

4242
@final
43-
class ReturnsAsserts(object):
43+
class ReturnsAsserts:
4444
"""Class with helpers assertions to check containers."""
4545

4646
__slots__ = ('_errors_handled', )

returns/iterables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
_FailableKind = TypeVar('_FailableKind', bound=FailableN)
1515

1616

17-
class AbstractFold(object):
17+
class AbstractFold:
1818
"""
1919
A collection of different helpers to write declarative ``Iterable`` actions.
2020

returns/primitives/laws.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def laws(cls) -> Dict[Type['Lawful'], Sequence[Law]]: # noqa: WPS210
150150
return laws
151151

152152

153-
class LawSpecDef(object):
153+
class LawSpecDef:
154154
"""Base class for all collection of laws aka LawSpecs."""
155155

156156
__slots__ = ()

returns/primitives/reawaitable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
@final
20-
class ReAwaitable(object):
20+
class ReAwaitable:
2121
"""
2222
Allows to write coroutines that can be awaited multiple times.
2323

0 commit comments

Comments
 (0)