Skip to content

ProcessPoolExecutor(mp_context=...) #3076

Closed

Description

@crusaderky

When parsing this with mypy:

import concurrent.futures
import multiprocessing

concurrent.futures.ProcessPoolExecutor(
    mp_context=multiprocessing.get_context('spawn'))

I get:

error: Unexpected keyword argument "mp_context" for "ProcessPoolExecutor"

The mp_context parameter was added in Python 3.7.0.

Environment:

  • anaconda OSX
  • python-3.7.3
  • mypy-0.701

Activity

  1. added
    stubs: false positive
    on Jun 20, 2019
  2. srittau commented on Jun 20, 2019

    @srittau
    Collaborator

    Patches welcome!

  3. added a commit that references this issue on Jun 20, 2019
    9941616
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stubs: false positive

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions