python / python/mypy

Split `[type-arg]` into `[type-arg]` and `[type-arg-generic]` also to solve #3737

Open
#17,667 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
Python
Stars
20.6k
Forks
3.3k
PR merge metrics
PR metrics pending

Description

Feature

Split error code [type-arg] into [type-arg] and [type-arg-generic] to allow disabling this check for generic errors, also to solve #3737.

Pitch

I have the same issue as described in #3737 . I want to disable_error_code = type-arg but only for generic types (eg pandas.Series), and keep it otherwise.
Therefore, I'm suggesting to split the error code into two error codes, so that I can disable one of them (and keep the other).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating where the [type-arg] diagnostic is produced and where error codes are registered or documented. Trace the generic-type cases described in the issue, then verify that generic diagnostics use [type-arg-generic] while other type-arg diagnostics retain [type-arg].

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
compilers
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.