Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

AST nodes for PEP 695 type param syntax do not requireend_lineno norend_col_offset #106145

Closed
Assignees
JelleZijlstra
Labels
@jacobtylerwalls

Description

@jacobtylerwalls

Bug report

Unlike AST nodes for 3.10 match syntax, AST nodes for 3.12 type param syntax (PEP 695) do not requireend_lineno norend_col_offset.

For 3.10 match syntax, this question was discussedhere, and it was decided to require them.

Context: see end_lineno and end_col_offset creation in 3.8 by#11605.

type_param = TypeVar(identifier name, expr? bound)
| ParamSpec(identifier name)
| TypeVarTuple(identifier name)
attributes (int lineno, int col_offset, int? end_lineno, int? end_col_offset)

Your environment

Python 3.12.0b3

Linked PRs

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp