Commit 3e46f9f
authored
This improves the lives of type annotation users of `float` - which type checkers implicitly treat as `int|float` because that is what most code actually wants. Before this change a `.is_integer()` method could not be assumed to exist on things annotated as `: float` due to the method not existing on both types.
1 parent a23cb72 commit 3e46f9f
File tree
5 files changed
+45
-1
lines changed- Doc/library
- Lib/test
- Misc/NEWS.d/next/Core and Builtins
- Objects
- clinic
5 files changed
+45
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
609 | 609 | | |
610 | 610 | | |
611 | 611 | | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
612 | 618 | | |
613 | 619 | | |
614 | 620 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1553 | 1553 | | |
1554 | 1554 | | |
1555 | 1555 | | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
1556 | 1561 | | |
1557 | 1562 | | |
1558 | 1563 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Some 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 | |
|---|---|---|---|
| |||
6168 | 6168 | | |
6169 | 6169 | | |
6170 | 6170 | | |
| 6171 | + | |
| 6172 | + | |
| 6173 | + | |
| 6174 | + | |
| 6175 | + | |
| 6176 | + | |
| 6177 | + | |
| 6178 | + | |
| 6179 | + | |
| 6180 | + | |
| 6181 | + | |
| 6182 | + | |
| 6183 | + | |
6171 | 6184 | | |
6172 | 6185 | | |
6173 | 6186 | | |
| |||
6186 | 6199 | | |
6187 | 6200 | | |
6188 | 6201 | | |
| 6202 | + | |
6189 | 6203 | | |
6190 | 6204 | | |
6191 | 6205 | | |
| |||
0 commit comments