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 — Modernize annotation usage in pyrepl · Issue #149985 · python/cpython

Modernize annotation usage in pyrepl #149985

New issue
Copy link
New issue
Copy link
Closed
Closed
Modernize annotation usage in pyrepl#149985
Copy link
Assignees
JelleZijlstra
Labels
pendingThe issue will be closed if no feedback is providedThe issue will be closed if no feedback is providedstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-replRelated to the interactive shellRelated to the interactive shelltype-refactorCode refactoring (with no changes in behavior)Code refactoring (with no changes in behavior)

Description

@JelleZijlstra
JelleZijlstra
opened on May 18, 2026
Issue body actions

Bug description:

The pyrepl code uses from __future__ import annotations and if TYPE_CHECKING unnecessarily. The former is mostly redundant on 3.14+, the latter can usually be replaced with lazy imports on 3.15+. Let's set a good example.

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Linked PRs

  • gh-149985: Remove future annotations and if TYPE_CHECKING in pyrepl #149992

Activity

  1. JelleZijlstra
    self-assigned this
    on May 18, 2026
  2. JelleZijlstra
    added
    topic-replRelated to the interactive shellRelated to the interactive shell
    type-refactorCode refactoring (with no changes in behavior)Code refactoring (with no changes in behavior)
    on May 18, 2026
  3. StanFromIreland
    added
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    on May 18, 2026
  4. JelleZijlstra
    added a commit that references this issue on Aug 25, 2026

    gh-149985: Remove future annotations and if TYPE_CHECKING in pyrepl (#…

    e2118b0
  5. clin1234
    added a commit that references this issue on Aug 27, 2026

    pythongh-149985: Remove future annotations and if TYPE_CHECKING in py…

    aba1494
  6. StanFromIreland commented on Sep 4, 2026

    @StanFromIreland
    StanFromIreland
    on Sep 4, 2026
    Member
    More actions

    Triage: Can this be closed as completed?

  7. StanFromIreland
    added
    pendingThe issue will be closed if no feedback is providedThe issue will be closed if no feedback is provided
    on Sep 4, 2026
  8. JelleZijlstra
    closed this as completedon Sep 5, 2026
  9. JelleZijlstra
    reopened this on Sep 5, 2026
  10. JelleZijlstra
    closed this as completedon Sep 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @JelleZijlstra
    JelleZijlstra

Labels

pendingThe issue will be closed if no feedback is providedThe issue will be closed if no feedback is providedstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-replRelated to the interactive shellRelated to the interactive shelltype-refactorCode refactoring (with no changes in behavior)Code refactoring (with no changes in behavior)

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — 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.