stubtest: more fine-grained allowlist · Issue #13703 · python/mypy (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Description
Feature
A function such as pandas.read_csv
has many arguments - there are many ways in which a stub file can be incompatible with the implementation :) As far as I know, stubtest's allowlist can either ignore the entire function/method but not individual arguments or individual error codes.
Pitch
The allowlist could support which argument names should be ignored. Further, it would be great if stubtest defines error codes/categories to ignore only those categories for a function/argument
pandas.read_csv.names
pandas.read_csv # type: ignore[implementation-is-not-keyword-only]