Bump version to 2.5.0+dev - #22065
Conversation
|
Diff from mypy_primer, showing the effect of this PR on open source code: core (https://github.com/home-assistant/core)
- Warning: disabling incremental mode may severely reduce performance
- If this is intentional, delete '.mypy_cache' to suppress this warning
pip (https://github.com/pypa/pip)
+ src/pip/_internal/metadata/pkg_resources.py:133: error: Argument "metadata" to "DistInfoDistribution" has incompatible type "InMemoryMetadata"; expected "IResourceProvider | None" [arg-type]
+ src/pip/_internal/metadata/pkg_resources.py:154: error: Argument "metadata" to "DistInfoDistribution" has incompatible type "InMemoryMetadata"; expected "IResourceProvider | None" [arg-type]
+ src/pip/_internal/metadata/pkg_resources.py:184: error: Item "IResourceProvider" of "IResourceProvider | EmptyProvider" has no attribute "path" [union-attr]
+ src/pip/_internal/metadata/pkg_resources.py:184: error: Item "EmptyProvider" of "IResourceProvider | EmptyProvider" has no attribute "path" [union-attr]
+ src/pip/_internal/resolution/resolvelib/candidates.py:410: error: Incompatible types in assignment (expression has type "Version", variable has type "None") [assignment]
+ src/pip/_internal/resolution/resolvelib/candidates.py:411: error: Incompatible return value type (got "None", expected "Version") [return-value]
- error: INTERNAL ERROR -- Please try using mypy master on GitHub:
- https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
- Please report a bug at https://github.com/python/mypy/issues
- version: 2.4.0+dev.cfb16ee741ef4f12ca940d9a3e5e2331a14d5aa5
- note: use --pdb to drop into pdb
- Traceback (most recent call last):
- File "", line 6, in <module>
- sys.exit(console_entry())
- File "/__main__.py", line 16, in console_entry
- main()
- ~~~~^^
- File "/main.py", line 167, in main
- res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
- ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/main.py", line 257, in run_build
- res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
- File "/build.py", line 388, in build
- metastore = create_metastore(options, parallel_worker=False)
- File "/build.py", line 1902, in create_metastore
- mds: MetadataStore = SqliteMetadataStore(
- ~~~~~~~~~~~~~~~~~~~^
- _cache_dir_prefix(options),
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^
- set_journal_mode=not parallel_worker,
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- num_shards=options.sqlite_num_shards,
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- )
- ^
- File "/metastore.py", line 200, in __init__
- connect_db(os_path_join(cache_dir_prefix, f"cache.{i}.db"), set_journal_mode)
- ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/metastore.py", line 174, in connect_db
- db.execute("PRAGMA journal_mode=WAL")
- ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
- sqlite3.OperationalError: database is locked
-
|
|
The crash in the primer is probably a result of hauntsaninja/mypy_primer#263 as well. I will try to work on a fix soon. |
|
sounds good, thanks! |
|
@ilevkivskyi any chance you are able to bump the librt version? there were over 10 commits since august and I don't have access to https://github.com/mypyc/librt to do it. I think that's the last thing that might be blocking |
|
OK, I started a Btw @JukkaL what do you think about requesting a CI concurrently increase for
We can say something like we are on free tier but this org is like important for Python OSS ecosystem or something. What do you think? |
Yeah, seems worth a try. |
|
Well, my request has been auto-closed within few seconds. I guess they may be stretched on resources with all the slop flowing. |
The release branch has been cut:
https://github.com/python/mypy/tree/release-2.4