GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Python: Update `types_new.py` and test output · github/codeql@9802ad7

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • python/extractor/tests/parser
    • types_new.expected
    • types_new.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎python/extractor/tests/parser/types_new.expected‎

Copy file name to clipboardExpand all lines: python/extractor/tests/parser/types_new.expected
-34Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -308,40 +308,6 @@ Module: [1, 0] - [23, 0]
308308
]
309309
ctx: Load
310310
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
345311
TypeAlias: [21, 0] - [21, 41]
346312
name:
347313
Name: [21, 5] - [21, 9]
Collapse file

‎python/extractor/tests/parser/types_new.py‎

Copy file name to clipboardExpand all lines: python/extractor/tests/parser/types_new.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ class Qux1[*Ts1 = *tuple[int, bool]]: ...
1717

1818
# TypeAliases
1919
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!
2121
type Qux2[*Ts2 = *tuple[str]] = Ham[*Ts2]
2222
type Rab[U2, T15 = str] = Bar2[T15, U2]

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.