Commit 023eb41
authored
Refactor class decorator: this enables
I've noticed that `TypedDict` and `NamedTuple` classes are special cased
during semantic analyzisys. They had their own logic for class-level
decorators. This is fine, but we need some common ground.
As a side-effect, they can now be `type_check_only`!type_check_only support for TypedDict and NamedTuple (#16469)1 parent efa5dcb commit 023eb41
2 files changed
+38
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1743 | 1743 | | |
1744 | 1744 | | |
1745 | 1745 | | |
1746 | | - | |
1747 | | - | |
1748 | | - | |
| 1746 | + | |
| 1747 | + | |
1749 | 1748 | | |
1750 | 1749 | | |
1751 | 1750 | | |
| |||
1781 | 1780 | | |
1782 | 1781 | | |
1783 | 1782 | | |
1784 | | - | |
1785 | | - | |
| 1783 | + | |
1786 | 1784 | | |
1787 | 1785 | | |
1788 | 1786 | | |
| |||
1864 | 1862 | | |
1865 | 1863 | | |
1866 | 1864 | | |
| 1865 | + | |
1867 | 1866 | | |
1868 | 1867 | | |
1869 | 1868 | | |
1870 | 1869 | | |
1871 | 1870 | | |
1872 | 1871 | | |
1873 | | - | |
1874 | | - | |
1875 | | - | |
1876 | | - | |
1877 | 1872 | | |
1878 | 1873 | | |
1879 | 1874 | | |
1880 | 1875 | | |
1881 | 1876 | | |
| 1877 | + | |
| 1878 | + | |
| 1879 | + | |
| 1880 | + | |
| 1881 | + | |
| 1882 | + | |
| 1883 | + | |
| 1884 | + | |
| 1885 | + | |
| 1886 | + | |
| 1887 | + | |
| 1888 | + | |
1882 | 1889 | | |
1883 | 1890 | | |
1884 | 1891 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2073 | 2073 | | |
2074 | 2074 | | |
2075 | 2075 | | |
| 2076 | + | |
| 2077 | + | |
| 2078 | + | |
| 2079 | + | |
| 2080 | + | |
| 2081 | + | |
| 2082 | + | |
| 2083 | + | |
| 2084 | + | |
| 2085 | + | |
| 2086 | + | |
| 2087 | + | |
| 2088 | + | |
| 2089 | + | |
| 2090 | + | |
| 2091 | + | |
| 2092 | + | |
| 2093 | + | |
| 2094 | + | |
| 2095 | + | |
| 2096 | + | |
| 2097 | + | |
2076 | 2098 | | |
2077 | 2099 | | |
2078 | 2100 | | |
| |||
0 commit comments