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 — Support user-defined type guard functions · Issue #1203 · python/mypy

Support user-defined type guard functions #1203

New issue
Copy link
New issue
Copy link
Closed
Closed
Support user-defined type guard functions#1203
Copy link
Labels
needs discussionpriority-2-low

Description

@ddfisher
ddfisher
opened on Feb 2, 2016
Issue body actions

Currently we special case isinstance checks for determining the local type of a variable, but we could potentially give user-defined functions the same capability. See: microsoft/TypeScript#1007

Activity

  1. ddfisher
    added
    needs discussion
    on Feb 2, 2016
  2. ddfisher
    added this to the This milestone has been deleted milestone on Mar 1, 2016
  3. gvanrossum
    added
    priority-2-low
    on Jan 6, 2017
  4. gvanrossum
    removed this from the This milestone has been deleted milestone on Mar 29, 2017
  5. ilevkivskyi commented on Jun 13, 2018

    @ilevkivskyi
    ilevkivskyi
    on Jun 13, 2018
    Member
    More actions

    Closing in favour of #5206 that has more discussion.

  6. ilevkivskyi
    closed this as completedon Jun 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs discussionpriority-2-low

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

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