Skip to content

Tab completion / dir broken on concurrent.futures #137282

Closed

Description

@henryiii

Bug report

Bug description:

I just noticed that in 3.14rc1, tab completion is broken on concurrent.futures. Trying dir, I got:

>>> import concurrent.futures
>>> dir(concurrent.futures)
Traceback (most recent call last):
  File "<python-input-2>", line 1, in <module>
    dir(concurrent.futures)
    ~~~^^^^^^^^^^^^^^^^^^^^
  File "/Users/henryschreiner/.local/share/uv/python/cpython-3.14.0rc1+freethreaded-macos-x86_64-none/lib/python3.14t/concurrent/futures/__init__.py", line 47, in __dir__
    return __all__ + ('__author__', '__doc__')
           ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
TypeError: can only concatenate list (not "tuple") to list

There's a typo in the __dir__ function; it is trying to concatenate a list and a tuple.

Bug introduced in #136381. Fix in #137214.

CPython versions tested on:

3.14

Operating systems tested on:

No response

Linked PRs

Activity

  1. added
    type-bug
    on Jul 31, 2025
  2. added
    stdlib
    3.14
    3.15
    on Jul 31, 2025
  3. ZeroIntensity commented on Jul 31, 2025

    @ZeroIntensity
    Member

    This is a 3.14 regression so I've marked this as a blocker.

  4. added a commit that references this issue on Jul 31, 2025
  5. added a commit that references this issue on Jul 31, 2025
  6. added a commit that references this issue on Aug 8, 2025
  7. added a commit that references this issue on Aug 19, 2025
  8. added a commit that references this issue on Sep 9, 2025
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

    3.143.15release-blockerstdlibtype-bug

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions