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
Argument 1 to "to_thread" has incompatible type "_RmtreeType"; expected "Callable[[Path, bool, None], None]" [arg-type]
Expected Behavior
I would assume this is fine this callable is fine and this is passing.
Actual Behavior
Argument 1 to "to_thread" has incompatible type "_RmtreeType"; expected "Callable[[Path, bool, None], None]" [arg-type]
Your Environment
Mypy version used: 1.11.0
Mypy command-line flags: pointing to pyproject.toml config
Mypy configuration options from mypy.ini (and other config files): ignore_missing_imports = true
Python version used: 3.12
I do NOT have Typeshed installed in my pip list, but I saw in typeshed that it may be bundled with mypy? Again I don't see it installed, but curious to know why this wouldn't work.
The text was updated successfully, but these errors were encountered:
Indeed, mypy (and all other type checkers) bundle typeshed, since it’s where they get type definitions for everything in the standard library.
I can see the problem though: In 3.12, the stub specifies onerror as not accepting None. Though that’s the default anyway, so you could just omit it, or use the replacement onexc.
Bug Report
(A clear and concise description of what the bug is.)
To Reproduce
I have some code like:
But I'm getting mypy errors like
Expected Behavior
I would assume this is fine this callable is fine and this is passing.
Actual Behavior
Your Environment
mypy.ini
(and other config files):ignore_missing_imports = true
I do NOT have Typeshed installed in my pip list, but I saw in typeshed that it may be bundled with mypy? Again I don't see it installed, but curious to know why this wouldn't work.
The text was updated successfully, but these errors were encountered: