You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would make sense to use --untyped-calls-exclude based on the defining class of an untyped function. However, that is not currently possible.
bug.py:8: error: Call to untyped function "draw" in typed context [no-untyped-call]
Found 1 error in 1 file (checked 1 source file)
I can use --untyped-calls-exclude=bug.Class to work around this, but when inheriting from a class from an untyped library, it makes more sense to exclude the actual culprit and avoid false negatives (namely, other functions correctly typed in Class).
Your Environment
Mypy version used: 1.7.1.
Mypy command-line flags: see above
Mypy configuration options from mypy.ini (and other config files): none
Python version used: 3.12.1
The text was updated successfully, but these errors were encountered:
Bug Report
I think it would make sense to use
--untyped-calls-exclude
based on the defining class of an untyped function. However, that is not currently possible.Related: #16653
To Reproduce
Expected Behavior
gives no error.
Actual Behavior
I can use
--untyped-calls-exclude=bug.Class
to work around this, but when inheriting from a class from an untyped library, it makes more sense to exclude the actual culprit and avoid false negatives (namely, other functions correctly typed inClass
).Your Environment
mypy.ini
(and other config files): noneThe text was updated successfully, but these errors were encountered: