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 — Implement typing.assert_type · Issue #90638 · python/cpython

Implement typing.assert_type #90638

New issue
Copy link
New issue
Copy link
Closed
Closed
Implement typing.assert_type#90638
Copy link
Assignees
JelleZijlstra
Labels
3.11only security fixesonly security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement

Description

@JelleZijlstra
JelleZijlstra
opened on Jan 23, 2022
Issue body actions
BPO 46480
Nosy @gvanrossum, @JelleZijlstra, @hauntsaninja, @sobolevn, @Fidget-Spinner, @AlexWaygood
PRs
  • bpo-46480: add typing.assert_type #30843
  • bpo-46480: rephrase typing.assert_type docs #32069
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/JelleZijlstra'
    closed_at = <Date 2022-03-17.03:04:56.930>
    created_at = <Date 2022-01-23.05:19:12.643>
    labels = ['type-feature', 'library', '3.11']
    title = 'Implement typing.assert_type'
    updated_at = <Date 2022-03-24.02:15:13.459>
    user = 'https://github.com/JelleZijlstra'

    bugs.python.org fields:

    activity = <Date 2022-03-24.02:15:13.459>
    actor = 'JelleZijlstra'
    assignee = 'JelleZijlstra'
    closed = True
    closed_date = <Date 2022-03-17.03:04:56.930>
    closer = 'JelleZijlstra'
    components = ['Library (Lib)']
    creation = <Date 2022-01-23.05:19:12.643>
    creator = 'JelleZijlstra'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 46480
    keywords = ['patch']
    message_count = 3.0
    messages = ['411345', '415385', '415921']
    nosy_count = 6.0
    nosy_names = ['gvanrossum', 'JelleZijlstra', 'hauntsaninja', 'sobolevn', 'kj', 'AlexWaygood']
    pr_nums = ['30843', '32069']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue46480'
    versions = ['Python 3.11']

    Activity

    1. JelleZijlstra commented on Jan 23, 2022

      @JelleZijlstra
      JelleZijlstra
      on Jan 23, 2022
      MemberAuthor
      More actions

      Implement typing.assert_type as proposed in https://mail.python.org/archives/list/[email protected]/thread/MITFQ6Z45RRMXY3HNM66IC3XXS3TA3JN/. This is a special primitive that asserts to the type checker what the type of an expression is.

      Tentatively dropping assert_error() based on Eric's feedback.

    2. JelleZijlstra
      added
      3.11only security fixesonly security fixes
      on Jan 23, 2022
    3. JelleZijlstra
      self-assigned this
      on Jan 23, 2022
    4. JelleZijlstra
      added
      3.11only security fixesonly security fixes
      stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
      on Jan 23, 2022
    5. JelleZijlstra
      self-assigned this
      on Jan 23, 2022
    6. JelleZijlstra
      added
      type-featureA feature request or enhancementA feature request or enhancement
      stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
      on Jan 23, 2022
    7. JelleZijlstra commented on Mar 17, 2022

      @JelleZijlstra
      JelleZijlstra
      on Mar 17, 2022
      MemberAuthor
      More actions

      New changeset 96568e9 by Jelle Zijlstra in branch 'main':
      bpo-46480: add typing.assert_type (GH-30843)
      96568e9

    8. JelleZijlstra
      closed this as completedon Mar 17, 2022
    9. JelleZijlstra
      closed this as completedon Mar 17, 2022
    10. JelleZijlstra commented on Mar 24, 2022

      @JelleZijlstra
      JelleZijlstra
      on Mar 24, 2022
      MemberAuthor
      More actions

      New changeset 3354245 by Shantanu in branch 'main':
      bpo-46480: rephrase typing.assert_type docs (GH-32069)
      3354245

    11. ezio-melotti
      transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    • @JelleZijlstra
      JelleZijlstra

    Labels

    3.11only security fixesonly security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement

    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.