Skip to content

[3.14] gh-151471: Colorize the soft keyword type in IDLE (GH-151700) - #157992

Merged
serhiy-storchaka merged 1 commit into
python:3.14from
serhiy-storchaka:bp-151471-3.14
Sep 23, 2026
Merged

serhiy-storchaka merged 1 commit into
python:3.14from
serhiy-storchaka:bp-151471-3.14

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

type is now colored as a keyword when it starts a statement and is followed by a name, as in type Point = tuple[float, float]. It stays a builtin elsewhere, for example in type = type(1), type(x) or type in (int, str).

(cherry picked from commit 68ed7a5)

Co-authored-by: Shixian Li znsoooo@gmail.com

…51700)

`type` is now colored as a keyword when it starts a statement and is
followed by a name, as in `type Point = tuple[float, float]`.  It stays
a builtin elsewhere, for example in `type = type(1)`, `type(x)` or
`type in (int, str)`.

(cherry picked from commit 68ed7a5)
@serhiy-storchaka
serhiy-storchaka enabled auto-merge (squash) September 23, 2026 11:18
@serhiy-storchaka
serhiy-storchaka merged commit e0d57fc into python:3.14 Sep 23, 2026
51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants