FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Implement typing.assert_type · Issue #90638 · python/cpython · GitHub

Repository navigation

Implement typing.assert_type #90638

Closed
Closed

Description

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

      MemberAuthor

      Implement typing.assert_type as proposed in https://mail.python.org/archives/list/typing-sig@python.org/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. added
      3.11only security fixes
      stdlibStandard Library Python modules in the Lib/ directory
      on Jan 23, 2022
    3. added
      type-featureA feature request or enhancement
      stdlibStandard Library Python modules in the Lib/ directory
      on Jan 23, 2022
    4. JelleZijlstra commented on Mar 17, 2022

      MemberAuthor

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

    5. JelleZijlstra commented on Mar 24, 2022

      MemberAuthor

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

    6. 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

    Labels

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL