Commit 8365a5b
The doctest module raised an error if a docstring contained an example that
attempted to access a classmethod property. (Stacking '@classmethod' on top of
`@property` has been supported since Python 3.9; see
https://docs.python.org/3/howto/descriptor.htmlGH-class-methods.)
Co-authored-by: Serhiy Storchaka <[email protected]>
(cherry picked from commit b1302ab)
Co-authored-by: Alex Waygood <[email protected]>
1 parent 21150c6 commit 8365a5b
File tree
4 files changed
+21
-4
lines changed- Lib
- test
- Misc
- NEWS.d/next/Library
4 files changed
+21
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1022 | 1022 | | |
1023 | 1023 | | |
1024 | 1024 | | |
1025 | | - | |
1026 | | - | |
1027 | | - | |
1028 | | - | |
| 1025 | + | |
| 1026 | + | |
1029 | 1027 | | |
1030 | 1028 | | |
1031 | 1029 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
96 | 107 | | |
97 | 108 | | |
98 | 109 | | |
| |||
498 | 509 | | |
499 | 510 | | |
500 | 511 | | |
| 512 | + | |
501 | 513 | | |
502 | 514 | | |
503 | 515 | | |
| |||
553 | 565 | | |
554 | 566 | | |
555 | 567 | | |
| 568 | + | |
556 | 569 | | |
557 | 570 | | |
558 | 571 | | |
| |||
594 | 607 | | |
595 | 608 | | |
596 | 609 | | |
| 610 | + | |
597 | 611 | | |
598 | 612 | | |
599 | 613 | | |
| |||
614 | 628 | | |
615 | 629 | | |
616 | 630 | | |
| 631 | + | |
617 | 632 | | |
618 | 633 | | |
619 | 634 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1846 | 1846 | | |
1847 | 1847 | | |
1848 | 1848 | | |
| 1849 | + | |
1849 | 1850 | | |
1850 | 1851 | | |
1851 | 1852 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments