Skip to content

Commit 049bb29

Browse files
[Fix PYI063] Use PEP 570 syntax for positional-only parameters
1 parent 10bcc70 commit 049bb29

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pyproject.toml

-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ lint.ignore = [
156156
"PLW0120", # remove the else and dedent its contents
157157
"PLW0603", # Using the global statement
158158
"PLW2901", # for loop variable overwritten by assignment target
159-
"PYI063",
160159
# ruff ignore
161160
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
162161
"UP031",

testing/example_scripts/dataclasses/test_compare_dataclasses_with_custom_eq.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class SimpleDataObject:
1010
field_a: int = field()
1111
field_b: str = field()
1212

13-
def __eq__(self, __o: object) -> bool:
13+
def __eq__(self, __o: object, /) -> bool:
1414
return super().__eq__(__o)
1515

1616
left = SimpleDataObject(1, "b")

0 commit comments

Comments
 (0)