python / python/mypy

Improve stubtest usability for py files

Aperta
#13,195 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

@hauntsaninja ci sta già lavorando.

Dal 20/7/2022.

feature topic-stubtest
Lingua principale
Python
Stelle
20.6k
Fork
3.3k
Metriche di merge delle PR
Metriche PR in attesa

Descrizione

Currently stubtest is very happy to treat "py" files as sources of type definitions. This is very useful, because it makes it easy to check packages that have mixed inline types and stubs (that may depend on each other).

But it does mean there is some counterintuitive behaviour where you'd expect to see something like "failed to find stubs". Basically, is it possible to salvage #12889 , #12896 (without becoming complicated enough that behaviour is unpredictable)?

Should also look into resolving some of the differences in the mypy build. Not going into detail (this is mostly a reminder for myself), but here are some links:
https://github.com/pandas-dev/pandas/issues/47760#issuecomment-1186306952
https://github.com/python/mypy/pull/13161#issuecomment-1186576852

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.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.