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

Diff for: poetry.lock

+111-135
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: pyproject.toml

+2-2
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"

Diff for: returns/contrib/mypy/_features/curry.py

+2-2
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

Diff for: returns/contrib/mypy/_features/partial.py

+2-2
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:

Diff for: returns/contrib/mypy/_typeops/inference.py

+2-2
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

Diff for: returns/contrib/mypy/_typeops/transform_callable.py

+2-2
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

Diff for: returns/contrib/pytest/plugin.py

+1-1
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', )

Diff for: returns/iterables.py

+1-1
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

Diff for: returns/primitives/laws.py

+1-1
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__ = ()

Diff for: returns/primitives/reawaitable.py

+1-1
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

Diff for: returns/primitives/types.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from returns.primitives.exceptions import ImmutableStateError
66

77

8-
class Immutable(object):
8+
class Immutable:
99
"""
1010
Helper type for objects that should be immutable.
1111

Diff for: tests/test_examples/test_maybe/test_maybe_pattern_matching.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
@dataclass
8-
class _Book(object):
8+
class _Book:
99
book_id: int
1010
name: str
1111

Diff for: tests/test_pipeline/test_managed/test_managed_future_result.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def _use_failure(inner_value: str) -> FutureResult[str, str]:
2424
return FutureResult.from_failure('use failure')
2525

2626

27-
class _ReleaseSuccess(object):
27+
class _ReleaseSuccess:
2828
def __init__(self, logs: List[Tuple[str, Result[str, str]]]) -> None:
2929
self._logs = logs
3030

@@ -37,7 +37,7 @@ def __call__(
3737
return FutureResult.from_value(None)
3838

3939

40-
class _ReleaseFailure(object):
40+
class _ReleaseFailure:
4141
def __init__(self, logs: List[Tuple[str, Result[str, str]]]) -> None:
4242
self._logs = logs
4343

Diff for: tests/test_pipeline/test_managed/test_managed_ioresult.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def _use_failure(inner_value: str) -> IOResult[str, str]:
1818
return IOFailure('use failure')
1919

2020

21-
class _ReleaseSuccess(object):
21+
class _ReleaseSuccess:
2222
def __init__(self, logs: List[Tuple[str, Result[str, str]]]) -> None:
2323
self._logs = logs
2424

@@ -31,7 +31,7 @@ def __call__(
3131
return IOSuccess(None)
3232

3333

34-
class _ReleaseFailure(object):
34+
class _ReleaseFailure:
3535
def __init__(self, logs: List[Tuple[str, Result[str, str]]]) -> None:
3636
self._logs = logs
3737

Diff for: tests/test_pipeline/test_managed/test_managed_reader_future_result.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def _use_failure(inner_value: str) -> ReaderFutureResult[str, str, NoDeps]:
2424
return ReaderFutureResult.from_failure('use failure')
2525

2626

27-
class _ReleaseSuccess(object):
27+
class _ReleaseSuccess:
2828
def __init__(self, logs: List[Tuple[str, Result[str, str]]]) -> None:
2929
self._logs = logs
3030

@@ -37,7 +37,7 @@ def __call__(
3737
return ReaderFutureResult.from_value(None)
3838

3939

40-
class _ReleaseFailure(object):
40+
class _ReleaseFailure:
4141
def __init__(self, logs: List[Tuple[str, Result[str, str]]]) -> None:
4242
self._logs = logs
4343

Diff for: tests/test_pipeline/test_managed/test_managed_reader_ioresult.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def _use_failure(inner_value: str) -> ReaderIOResult[str, str, NoDeps]:
1919
return ReaderIOResult.from_failure('use failure')
2020

2121

22-
class _ReleaseSuccess(object):
22+
class _ReleaseSuccess:
2323
def __init__(self, logs: List[Tuple[str, Result[str, str]]]) -> None:
2424
self._logs = logs
2525

@@ -32,7 +32,7 @@ def __call__(
3232
return ReaderIOResult.from_value(None)
3333

3434

35-
class _ReleaseFailure(object):
35+
class _ReleaseFailure:
3636
def __init__(self, logs: List[Tuple[str, Result[str, str]]]) -> None:
3737
self._logs = logs
3838

Diff for: tests/test_primitives/test_container/test_base_container/test_pickle.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from returns.primitives.container import BaseContainer
88

99

10-
class _CustomClass(object):
10+
class _CustomClass:
1111
def __init__(self, inner_value: Any) -> None:
1212
self.inner_value = inner_value
1313

0 commit comments

Comments
 (0)