astral-sh / astral-sh/ruff

Some rules should be disabled for typing protocols

Open
#4,887 5 comments 4 reactions 0 assignees View on GitHub
needs-decision rule
Dominant language
Rust
Stars
49.7k
Forks
2.4k
Avg merge
2d 1h
Merged PRs (30d)
458

Description

I can think of ANN101 and D102:

Given:
```python
class Message(Protocol):
"""Message on the event queue."""

@property
def message_id(self) -> str:
...

def delete(self) -> None:
...
```

Contributor guide

Open the contributing guide

Research direction

The issue names no files or tests. Start by reproducing the Python Protocol example and tracing the ANN101 and D102 rule implementations; done means the requested protocol-specific diagnostics are disabled and the example is covered by the relevant tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, rust
Domain
devtools, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.