Description of problem: The most recent mypy update in Fedora 35 breaks with the error message in the subject. $ git clone https://github.com/martinpitt/python-dbusmock/ $ cd python-dbusmock $ mypy --verbose setup.py LOG: Could not load plugins snapshot: @plugins_snapshot.json LOG: Mypy Version: 0.810 LOG: Config File: setup.cfg LOG: Configured Executable: /usr/bin/python3 LOG: Current Executable: /usr/bin/python3 LOG: Cache Dir: .mypy_cache LOG: Compiled: False LOG: Exclude: LOG: Found source: BuildSource(path='setup.py', module='setup', has_text=False, base_dir='/source') LOG: Could not load cache for setup: setup.meta.json LOG: Metadata not found for setup LOG: Parsing setup.py (setup) LOG: Build finished in 0.007 seconds with 1 modules, and 1 errors setup.py:1: error: Cannot find 'builtins' module. Typeshed appears broken! Found 1 error in 1 file (errors prevented further checking) This isn't particularly sensitive to ./setup.py, it does the same thing on any other Python file in that project. I tried to install the current version from PyPy: $ pip install mypy mypy 0.812 mypy-extensions 0.4.3 With that it works again. So hopefully all that's required is to update the Rawhide package to 0.812? Version-Release number of selected component (if applicable): python3-mypy_extensions-0.4.3-5.fc34.noarch python3-mypy-0.810-1.fc35.noarch How reproducible: Always
I wanted to compare with upstream with `pip install mypy==0.810`, but that version does not actually exist on https://pypi.org/project/mypy/#history nor http://www.mypy-lang.org/ . It only exists as a tag on https://github.com/python/mypy/releases
*** This bug has been marked as a duplicate of bug 1929522 ***