python / python/mypy

Meta issue tracker, pt 2

Aperta
#16,472 1 commento 7 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

meta
Lingua principale
Python
Stelle
20.6k
Fork
3.3k
Metriche di merge delle PR
Metriche PR in attesa

Descrizione

This is the sequel to https://github.com/python/mypy/issues/11201. It's awesome to see most of the things in that issue fixed.

Type System Features
Behaviour changes
UI
  • Per module strict=true https://github.com/python/mypy/issues/11401

    There's maybe some other UI stuff we can think about for groups of flags and error codes, as discussed in meetup. I also don't like the new --extra-checks since flag name doesn't mean anything and can't be decomposed.

  • Ability to override PEP 561 https://github.com/python/mypy/issues/8545

    It would be nice to be able to opt-in to treating packages missing py.typed as having py.typed. mypy can still provide a lot of value just based on function shape.

    Update: this is now --follow-untyped-imports (can be set per-module)

  • Exclude should imply per-module follow_import=skip https://github.com/python/mypy/issues/10377

    Currently --exclude only affects file discovery on command line, not import following. This is a source of frustration for users because the relevant modules can still end up being type checked.

  • Provide flag to generate stubs requirements https://github.com/python/mypy/issues/10600#issuecomment-950170169

    --install-types is slow, results in unstable type checking, doesn't let users manage their own envs, can fail unclearly if cache isn't written

  • Rethink stub suggestion logic https://github.com/python/mypy/issues/10619

    Our current behaviour was needed to help the migration to modular typeshed, but is not behaviour we'd have designed from scratch.

Gradual typing
Performance
Misc

See also a similar issue for mypyc here: https://github.com/mypyc/mypyc/issues/785

(other maintainers, feel free to edit)

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia esaminando le issue collegate ancora aperte sotto Type System Features, Behaviour changes, UI, Gradual typing e Misc, insieme alle discussioni a cui fanno riferimento. Questo tracker non indica file né test; il completamento richiede di risolvere gli elementi in sospeso selezionati o di spostarli in un lavoro con ambito separato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
devtools
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
20/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.