python / python/mypy

`Type[]` is missing from the cheatsheet

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

Nobody has claimed this yet.

documentation priority-1-normal
Dominant language
Python
Stars
20.6k
Forks
3.3k
PR merge metrics
PR metrics pending

Description

Type[] isn't mentioned in https://mypy.readthedocs.io/en/latest/cheat_sheet_py3.html, but it seems fairly commonly useful. If others agree I can make a PR to add it.

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 with the Python 3 cheat sheet at https://mypy.readthedocs.io/en/latest/cheat_sheet_py3.html and inspect its existing type annotation examples. Add a mention of Type[] in the appropriate section, then verify the documentation builds and the type is represented accurately.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.