Skip to content

False positive [call-arg] with functools.partial and concurrent.futures.Executor.submit #19028

Open
@andrei-korshikov

Description

@andrei-korshikov

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.01.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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmypy got something wrongtopic-callsFunction calls, *args, **kwargs, defaults

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions