You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are planning to turn this flag on by default in mypy 2.0, along
70
+
with `--local-partial-types`. The feature is still experimental and
71
+
has known issues, and the semantics may still change in the
72
+
future. You may need to update or add type annotations when switching
73
+
to the new behavior, but if you encounter anything unexpected, please
74
+
create a GitHub issue.
75
+
76
+
This was contributed by Jukka Lehtosalo (PR [18727](https://github.com/python/mypy/pull/18727)).
30
77
31
78
### Stricter Type Checking with Imprecise Types
32
79
33
-
TODO:
80
+
Mypy can now detect additional errors in code that uses `Any` types or has missing function annotations.
34
81
35
82
*`dict.get`
36
83
* Use union types instead of join in binder (Ivan Levkivskyi, PR [18538](https://github.com/python/mypy/pull/18538))
37
84
* Check superclass compatibility of untyped methods if `--check-untyped-defs` is set (Stanislav Terliakov, PR [18970](https://github.com/python/mypy/pull/18970))
38
85
39
86
### Improvements to Attribute Resolution
40
87
41
-
This release includes various fixes to inconsistent resolution of attribute access.
88
+
This release includes several fixes to inconsistent resolution of attribute, method and descriptor types.
42
89
43
-
* Consolidate descriptor handling in checkmember.py (Ivan Levkivskyi, PR [18831](https://github.com/python/mypy/pull/18831))
44
-
*Use checkmember.py to check multiple inheritance (Ivan Levkivskyi, PR [18876](https://github.com/python/mypy/pull/18876))
45
-
*Use checkmember.py to check method override (Ivan Levkivskyi, PR [18870](https://github.com/python/mypy/pull/18870))
0 commit comments