Commit 5ddb9d6
committed
gh-149132: Add module keyword argument to
Add an optional keyword-only `module` argument to
`typing.TypeAliasType` that overrides the `__module__` attribute
inferred by frame introspection. When omitted, behavior is unchanged.
closes #149132.typing.TypeAliasType
1 parent d71e3bc commit 5ddb9d6
5 files changed
Lines changed: 65 additions & 17 deletions
File tree
- Doc/library
- Lib/test
- Misc/NEWS.d/next/Library
- Objects
- clinic
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2315 | 2315 | | |
2316 | 2316 | | |
2317 | 2317 | | |
2318 | | - | |
| 2318 | + | |
| 2319 | + | |
2319 | 2320 | | |
2320 | 2321 | | |
2321 | 2322 | | |
| |||
2327 | 2328 | | |
2328 | 2329 | | |
2329 | 2330 | | |
| 2331 | + | |
| 2332 | + | |
| 2333 | + | |
| 2334 | + | |
| 2335 | + | |
| 2336 | + | |
| 2337 | + | |
| 2338 | + | |
| 2339 | + | |
2330 | 2340 | | |
2331 | 2341 | | |
| 2342 | + | |
| 2343 | + | |
| 2344 | + | |
2332 | 2345 | | |
2333 | 2346 | | |
2334 | 2347 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
331 | 345 | | |
332 | 346 | | |
333 | 347 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
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 | |
|---|---|---|---|
| |||
2149 | 2149 | | |
2150 | 2150 | | |
2151 | 2151 | | |
| 2152 | + | |
2152 | 2153 | | |
2153 | 2154 | | |
2154 | 2155 | | |
2155 | 2156 | | |
2156 | 2157 | | |
2157 | 2158 | | |
2158 | | - | |
2159 | | - | |
| 2159 | + | |
| 2160 | + | |
| 2161 | + | |
2160 | 2162 | | |
2161 | 2163 | | |
2162 | 2164 | | |
| |||
2179 | 2181 | | |
2180 | 2182 | | |
2181 | 2183 | | |
2182 | | - | |
2183 | | - | |
2184 | | - | |
| 2184 | + | |
| 2185 | + | |
| 2186 | + | |
| 2187 | + | |
| 2188 | + | |
| 2189 | + | |
| 2190 | + | |
| 2191 | + | |
2185 | 2192 | | |
2186 | 2193 | | |
2187 | 2194 | | |
2188 | | - | |
2189 | | - | |
| 2195 | + | |
| 2196 | + | |
2190 | 2197 | | |
2191 | 2198 | | |
2192 | 2199 | | |
| |||
0 commit comments