Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Ruff PLE (Pylint Error) #13305

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ select = [
"B", # flake8-bugbear
"FA", # flake8-future-annotations
"I", # isort
"PLE", # Pylint Error
"RUF", # Ruff-specific and unused-noqa
"UP", # pyupgrade
# Flake8 base rules
Expand Down
2 changes: 1 addition & 1 deletion stubs/gevent/gevent/hub.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class _DefaultReturnProperty(Protocol[_T]):
@overload
def __get__(self, obj: object, owner: type[object] | None = None) -> _T: ...
def __set__(self, obj: object, value: _T | None) -> None: ...
def __del__(self, obj: object) -> None: ...
def __del__(self) -> None: ...

def spawn_raw(function: Callable[..., object], *args: object, **kwargs: object) -> greenlet.greenlet: ...
def sleep(seconds: float = 0, ref: bool = True) -> None: ...
Expand Down
6 changes: 3 additions & 3 deletions stubs/regex/regex/regex.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import sys
from _typeshed import ReadableBuffer
from _typeshed import ReadableBuffer, Unused
from collections.abc import Callable, Mapping
from typing import Any, AnyStr, Generic, Literal, TypeVar, final, overload
from typing_extensions import Self
Expand Down Expand Up @@ -568,7 +568,7 @@ class Pattern(Generic[AnyStr]):
timeout: float | None = None,
) -> _regex.Scanner[bytes]: ...
def __copy__(self) -> Self: ...
def __deepcopy__(self) -> Self: ...
def __deepcopy__(self, /, memo: Unused) -> Self: ...
Avasam marked this conversation as resolved.
Show resolved Hide resolved
if sys.version_info >= (3, 9):
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...

Expand Down Expand Up @@ -647,6 +647,6 @@ class Match(Generic[AnyStr]):
@overload
def __getitem__(self, key: int | str, /) -> AnyStr | Any: ...
def __copy__(self) -> Self: ...
def __deepcopy__(self) -> Self: ...
def __deepcopy__(self, /, memo: Unused) -> Self: ...
Avasam marked this conversation as resolved.
Show resolved Hide resolved
if sys.version_info >= (3, 9):
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
Loading