GeezerVison is showing github.com — Python: Update `types_new.py` and test output · github/codeql@9802ad7
File treeExpand file treeCollapse file tree Open diff view settings python/extractor/tests/parser
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: python/extractor/tests/parser/types_new.expected -34Lines changed: 0 additions & 34 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -308,40 +308,6 @@ Module: [1, 0] - [23, 0] | 308 | 308 | ] | 309 | 309 | ctx: Load | 310 | 310 | ctx: Load | 311 | | - TypeAlias: [20, 0] - [20, 41] | 312 | | - name: | 313 | | - Name: [20, 5] - [20, 9] | 314 | | - variable: Variable('Baz2', None) | 315 | | - ctx: Store | 316 | | - type_parameters: [ | 317 | | - ParamSpec: [20, 10] - [20, 27] | 318 | | - name: | 319 | | - Name: [20, 12] - [20, 14] | 320 | | - variable: Variable('P2', None) | 321 | | - ctx: Store | 322 | | - default: | 323 | | - List: [20, 17] - [20, 27] | 324 | | - elts: [ | 325 | | - Name: [20, 18] - [20, 21] | 326 | | - variable: Variable('int', None) | 327 | | - ctx: Load | 328 | | - Name: [20, 23] - [20, 26] | 329 | | - variable: Variable('str', None) | 330 | | - ctx: Load | 331 | | - ] | 332 | | - ctx: Load | 333 | | - ] | 334 | | - value: | 335 | | - Subscript: [20, 31] - [20, 41] | 336 | | - value: | 337 | | - Name: [20, 31] - [20, 35] | 338 | | - variable: Variable('Spam', None) | 339 | | - ctx: Load | 340 | | - index: | 341 | | - Name: [20, 38] - [20, 40] | 342 | | - variable: Variable('P2', None) | 343 | | - ctx: Load | 344 | | - ctx: Load | 345 | 311 | TypeAlias: [21, 0] - [21, 41] | 346 | 312 | name: | 347 | 313 | Name: [21, 5] - [21, 9] | |
Collapse file Copy file name to clipboardExpand all lines: python/extractor/tests/parser/types_new.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -17,6 +17,6 @@ class Qux1[*Ts1 = *tuple[int, bool]]: ... | 17 | 17 |
| 18 | 18 | # TypeAliases | 19 | 19 | type Foo2[T15, U1 = str] = Bar1[T15, U1] | 20 | | -type Baz2[**P2 = [int, str]] = Spam[**P2] | | 20 | +# type Baz2[**P2 = [int, str]] = Spam[**P2] # From the PEP, but this is not actually valid syntax! | 21 | 21 | type Qux2[*Ts2 = *tuple[str]] = Ham[*Ts2] | 22 | 22 | type Rab[U2, T15 = str] = Bar2[T15, U2] |
|