Skip to content

Commit 63e6ea8

Browse files
authored
Enable Ruff PLE (Pylint Error) (#13305)
1 parent 641ca18 commit 63e6ea8

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ select = [
4646
"N", # pep8-naming
4747
"PGH", # pygrep-hooks
4848
"PLC", # Pylint Convention
49+
"PLE", # Pylint Error
4950
"PLR", # Pylint Refactor
5051
"RUF", # Ruff-specific and unused-noqa
5152
"TRY", # tryceratops

stubs/gevent/gevent/hub.pyi

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class _DefaultReturnProperty(Protocol[_T]):
2929
@overload
3030
def __get__(self, obj: object, owner: type[object] | None = None) -> _T: ...
3131
def __set__(self, obj: object, value: _T | None) -> None: ...
32-
def __del__(self, obj: object) -> None: ...
32+
def __del__(self) -> None: ...
3333

3434
def spawn_raw(function: Callable[..., object], *args: object, **kwargs: object) -> greenlet.greenlet: ...
3535
def sleep(seconds: float = 0, ref: bool = True) -> None: ...

stubs/regex/regex/regex.pyi

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import sys
2-
from _typeshed import ReadableBuffer
2+
from _typeshed import ReadableBuffer, Unused
33
from collections.abc import Callable, Mapping
44
from typing import Any, AnyStr, Generic, Literal, TypeVar, final, overload
55
from typing_extensions import Self
@@ -568,7 +568,7 @@ class Pattern(Generic[AnyStr]):
568568
timeout: float | None = None,
569569
) -> _regex.Scanner[bytes]: ...
570570
def __copy__(self) -> Self: ...
571-
def __deepcopy__(self) -> Self: ...
571+
def __deepcopy__(self, memo: Unused, /) -> Self: ...
572572
if sys.version_info >= (3, 9):
573573
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
574574

@@ -647,6 +647,6 @@ class Match(Generic[AnyStr]):
647647
@overload
648648
def __getitem__(self, key: int | str, /) -> AnyStr | Any: ...
649649
def __copy__(self) -> Self: ...
650-
def __deepcopy__(self) -> Self: ...
650+
def __deepcopy__(self, memo: Unused, /) -> Self: ...
651651
if sys.version_info >= (3, 9):
652652
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...

0 commit comments

Comments
 (0)