Commit 3a21661
Update mypy from <1.18 to <1.21 (support through 1.20.1) (#2373)
* Fix typesafety test expectations for mypy 1.18 changes
- 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 support to 1.20.1 and fix all typesafety test expectations
- 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>
* Bump mypy minimum to 1.19, regenerate lock file, clean up dead version 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>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: sobolevn <4660275+sobolevn@users.noreply.github.com>1 parent ef94591 commit 3a21661
File tree
143 files changed
+950
-862
lines changed- returns/contrib/mypy
- _features
- _typeops
- tests/test_primitives/test_container/test_base_container
- typesafety
- test_context
- test_requires_context_future_result
- test_requires_context_ioresult
- test_requires_context_result
- test_requires_context
- test_converters
- test_curry
- test_curry
- test_partial
- test_examples/test_your_container
- test_functions
- test_future
- test_future_container
- test_future_result_container
- test_interfaces
- test_altable
- test_bindable
- test_equality
- test_failable
- test_lashable
- test_mappable
- test_specific
- test_future_result
- test_future
- test_ioresult
- test_io
- test_reader
- test_result
- test_unwrappable
- test_io
- test_io_container
- test_ioresult_container
- test_iterables/test_fold
- test_maybe
- test_methods
- test_pipeline
- test_flow
- test_managed
- test_pipe
- test_pointfree
- test_primitives
- test_hkt
- test_dekind
- test_kinded
- test_kindn
- test_reawaitable
- test_tracing
- test_result
- test_trampolines
- test_unsafe
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
143 files changed
+950
-862
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | 3 | | |
6 | 4 | | |
7 | 5 | | |
| |||
63 | 61 | | |
64 | 62 | | |
65 | 63 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | 64 | | |
74 | 65 | | |
75 | 66 | | |
| |||
80 | 71 | | |
81 | 72 | | |
82 | 73 | | |
83 | | - | |
84 | 74 | | |
85 | 75 | | |
86 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | | - | |
| 3 | + | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
119 | 118 | | |
120 | 119 | | |
121 | 120 | | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | 121 | | |
132 | 122 | | |
133 | 123 | | |
| |||
138 | 128 | | |
139 | 129 | | |
140 | 130 | | |
141 | | - | |
142 | 131 | | |
143 | 132 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
0 commit comments