-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Labels
bugmypy got something wrongmypy got something wrongtopic-callsFunction calls, *args, **kwargs, defaultsFunction calls, *args, **kwargs, defaults
Description
I get false positive [call-arg] when I apply functools.partial to concurrent.futures.Executor.submit. I see a bunch of opened partial-related issues, but I can't understand if my use case is a duplicate (if it is so—I am sorry for the noise). I've tried to reproduce this without concurrent.futures but got no luck.
To Reproduce
Actual Behavior
Versions 1.10.1 and earlier—no errors (expected behaviour).
Versions 1.11.0–1.13.0:
main.py:11: error: Missing positional argument "parameter" in call to "submit" of "Executor" [call-arg]
Versions from 1.14.0 up to the "master branch":
main.py:11: error: Missing positional argument "parameter" in call to "submit" of "Executor" [call-arg]
main.py:11: error: Too few arguments for "submit" of "Executor" [call-arg]
Your Environment
I've played in playground with its default settings (i.e. no options were checked) and Python versions 3.12 and 3.13.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugmypy got something wrongmypy got something wrongtopic-callsFunction calls, *args, **kwargs, defaultsFunction calls, *args, **kwargs, defaults