Skip to content

Upgrade vendored typing_extensions to 4.14.0 #13428

@youknowone

Description

@youknowone

Description

The bug from typing_extensions affect pip installation.

Related bug report of typing_extensions: python/typing_extensions#404

Which is fixed from 4.14.0

Expected behavior

No response

pip version

25.1.1

Python version

RustPython main

OS

Linux (Github actions Ubuntu image)

How to Reproduce

./rustpython --install-pip

Output

File "/home/runner/work/RustPython/RustPython/pylib/Lib/runpy.py", line 224, in run_module
    return _run_module_code(code, init_globals, run_name, mod_spec)
  File "/home/runner/work/RustPython/RustPython/pylib/Lib/runpy.py", line 94, in _run_module_code
    with _TempModule(mod_name) as temp_module, _ModifiedArgv0(fname):
  File "/home/runner/work/RustPython/RustPython/pylib/Lib/runpy.py", line 97, in _run_module_code
    mod_name, mod_spec, pkg_name, script_name)
  File "/home/runner/work/RustPython/RustPython/pylib/Lib/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/tmp/tmp3a6kinnx/pip-25.1.1-py3-none-any.whl/pip/__main__.py", line 22, in <module>
  File "/tmp/tmp3a6kinnx/pip-25.1.1-py3-none-any.whl/pip/_internal/cli/main.py", line 10, in <module>
  File "/tmp/tmp3a6kinnx/pip-25.1.1-py3-none-any.whl/pip/_internal/cli/autocompletion.py", line 9, in <module>
  File "/tmp/tmp3a6kinnx/pip-25.1.1-py3-none-any.whl/pip/_internal/cli/main_parser.py", line 8, in <module>
  File "/tmp/tmp3a6kinnx/pip-25.1.1-py3-none-any.whl/pip/_internal/build_env.py", line 16, in <module>
  File "/tmp/tmp3a6kinnx/pip-25.1.1-py3-none-any.whl/pip/_internal/cli/spinners.py", line 9, in <module>
  File "/tmp/tmp3a6kinnx/pip-25.1.1-py3-none-any.whl/pip/_internal/utils/logging.py", line 29, in <module>
  File "/tmp/tmp3a6kinnx/pip-25.1.1-py3-none-any.whl/pip/_internal/utils/misc.py", line 44, in <module>
  File "/tmp/tmp3a6kinnx/pip-25.1.1-py3-none-any.whl/pip/_internal/utils/retry.py", line 8, in <module>
  File "/tmp/tmp3a6kinnx/pip-25.1.1-py3-none-any.whl/pip/_vendor/typing_extensions.py", line 1768, in __new__
  File "/tmp/tmp3a6kinnx/pip-25.1.1-py3-none-any.whl/pip/_vendor/typing_extensions.py", line 1613, in _set_default
AttributeError: attribute '__default__' of 'ParamSpec' objects is not writable
Traceback (most recent call last):
  File "/home/runner/work/RustPython/RustPython/pylib/Lib/runpy.py", line 197, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/runner/work/RustPython/RustPython/pylib/Lib/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/runner/work/RustPython/RustPython/pylib/Lib/ensurepip/__main__.py", line 5, in <module>
    sys.exit(ensurepip._main())
  File "/home/runner/work/RustPython/RustPython/pylib/Lib/ensurepip/__init__.py", line [26](https://github.com/RustPython/RustPython/actions/runs/15660508360/job/44117485825?pr=5740#step:16:27)3, in _main
    default_pip=args.default_pip,
  File "/home/runner/work/RustPython/RustPython/pylib/Lib/ensurepip/__init__.py", line 153, in _bootstrap
    with tempfile.TemporaryDirectory() as tmpdir:
  File "/home/runner/work/RustPython/RustPython/pylib/Lib/ensurepip/__init__.py", line 172, in _bootstrap
    return _run_pip([*args, "pip"], [os.fsdecode(tmp_wheel_path)])
  File "/home/runner/work/RustPython/RustPython/pylib/Lib/ensurepip/__init__.py", line 87, in _run_pip
    return subprocess.run(cmd, check=True).returncode
  File "/home/runner/work/RustPython/RustPython/pylib/Lib/subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/home/runner/work/RustPython/RustPython/pylib/Lib/subprocess.py", line 572, in run
    output=stdout, stderr=stderr)

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions