Skip to content

Considered using PEP-484 type annotations? #248

Open

Description

They will be the standard way to type annotate function signatures (including parameterized types like lists, dicts, etc.), and are run-time accessible. Is it worth looking into using that?

Activity

  1. bitprophet commented on May 21, 2015

    @bitprophet
    Member

    Thanks for asking!

    I can't remember offhand whether there are existing plans for backporting that feature to Python 2. My default instinct is to avoid Python 3 specific things (even in an optional mode) because they generally don't add enough benefit to be worth the expected support burden (i.e. confused users trying to use those features on Python 2; extra code divergence between the interpreters; etc).

    So, I'm neutral on the overall idea but it hinges on that question. Let me know if you look into that.

  2. mtvx commented on May 26, 2015

    @mtvx

    At least mypy (where PEP-484 originates from) lists python 2.x support for 2015 in their roadmap: http://mypy-lang.org/roadmap.html

  3. bitprophet commented on Jul 6, 2016

    @bitprophet
    Member

    Linking this to #357 which is semi related (it's re: folks using this functionality in Python 3, for its own sake, not re: any internal support).

  4. elgalu commented on Apr 19, 2022

    @elgalu

    hi! are there plans for https://github.com/python/mypy support?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions