Update mypy from <1.18 to <1.21 (support through 1.20.1)#2373
Merged
Update mypy from <1.18 to <1.21 (support through 1.20.1)#2373
Conversation
- Update 'Cannot infer type argument N' → 'Cannot infer value of type parameter X' - Remove no longer emitted '"Never" not callable' error - Remove no longer emitted 'erased type of self' errors Agent-Logs-Url: https://github.com/dry-python/returns/sessions/f332ee3a-c556-47ec-a276-8119a6a98aca Co-authored-by: sobolevn <4660275+sobolevn@users.noreply.github.com>
- Update mypy version constraint from >=1.12,<1.18 to >=1.12,<1.21 - Fix builtins.X → X display changes in all typesafety YAML tests (mypy 1.20) - Fix TypeVar backtick suffix removal in revealed types (mypy 1.20) - Fix 'Cannot infer type argument N' → 'Cannot infer value of type parameter X' (mypy 1.18) - Remove no longer emitted 'Never not callable' and 'erased type of self' errors (mypy 1.18) - Remove no longer emitted 'defined here' note (mypy 1.20) - Remove unused type: ignore comment in test_pickle.py (mypy 1.20 improvement) Agent-Logs-Url: https://github.com/dry-python/returns/sessions/f332ee3a-c556-47ec-a276-8119a6a98aca Co-authored-by: sobolevn <4660275+sobolevn@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
sobolevn
April 14, 2026 05:51
View session
…n checks - Bump mypy version constraint from >=1.12,<1.21 to >=1.19,<1.21 - Regenerate poetry.lock to fix CI (lock file was out of sync) - Remove dead version-check code for mypy < 1.16 in plugin (analyze_member_access msg parameter handling no longer needed) - Remove unused imports (importlib.metadata.version, typing.Any) Agent-Logs-Url: https://github.com/dry-python/returns/sessions/ec3a5de7-f5a3-49a4-a973-9265d6a4555e Co-authored-by: sobolevn <4660275+sobolevn@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pyproject.toml changed significantly since poetry.lock was last generated)< (1, 16)branches since min is now 1.19)