python / python/mypy

Add error codes for additional strictness flags

Open
#7,457 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature priority-1-normal topic-error-reporting
Dominant language
Python
Stars
20.6k
Forks
3.3k
PR merge metrics
PR metrics pending

Description

Various strictness options such as --disallow-subclassing-any generate errors with the misc code. It would be better to give all or most of them specific error codes, so that users could more easily look up the reason for the error in the documentation.

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 the handling for strictness flags such as --disallow-subclassing-any and the diagnostics that currently use the misc code. Review how error codes are documented, then determine a bounded set of strictness errors to update. Done means the selected errors have specific codes and those codes are documented for users.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.