Add MyPy checks for typing consistency.

Open
#7,176 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start in the MyPy section of pyproject.toml and review the existing strict flag alongside the requested checks: disallow_untyped_calls, disallow-incomplete-defs, and disallow-untyped-decorators. Check whether the flags overlap or affect the project’s current typing setup. Done means the agreed consistency checks are configured without confusing or conflicting settings.

Written by the indexing model from the issue text.

Description

Dragon Sub-Task 🦎

✨ Feature Request

Motivation

As part of #5924.

Within the MyPy section of pyproject.toml, introduce MyPy checks for typing consistency, i.e. disallow_untyped_calls, disallow-incomplete-defs and disallow-untyped-decorators. Consider if any other MyPy checks are worth adding.

  • Also consider what to do with the existing strict flag, as it may or may not clash with the specific flags below. At the very least it may confuse future developers?

Additional context

Click to expand this section...
Please add additional verbose information in this section e.g., references, screenshots, listings etc
Dominant language
Python
Stars
724
Forks
317
Avg merge
3d 20h
Merged PRs (30d)
9

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.

More from SciTools/iris

All issues in SciTools/iris

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.