astral-sh / astral-sh/ruff

Implement `TYP001` from `flake8-typing-imports`

Open
#2,302 1 comment 6 reactions 0 assignees View on GitHub
rule
Dominant language
Rust
Stars
49.6k
Forks
2.4k
Avg merge
2d 1h
Merged PRs (30d)
458

Description

This rule detects whether you've imported something from `typing` that's incompatible with your supported Python version.

See: #2096.

Contributor guide

Open the contributing guide

Research direction

Start by reading issue #2096 for the surrounding context and locate the existing rule implementations in Ruff. Trace how typing-related imports are detected and how supported Python versions are represented. Done means Ruff implements TYP001 and detects incompatible imports from typing.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.