Skip to content

Type check super() arguments #526

Closed
Closed

Description

@JukkaL

Currently the arguments in super() calls are not checked.

Activity

  1. added
    bugmypy got something wrong
    and removed on Dec 8, 2014
  2. JukkaL commented on Dec 8, 2014

    @JukkaL
    CollaboratorAuthor

    Actually this is not that urgent, since this is mostly relevant for Python 2 code.

  3. JukkaL commented on Jun 3, 2016

    @JukkaL
    CollaboratorAuthor

    For example, mypy doesn't report an error for this code:

    class A:
        def f(self) -> None: pass
    
    class B(A):
        def f(self) -> None:
            super(1, '', '').f()   # ouch, should generate an error
    
  4. axitkhurana commented on Jun 3, 2016

    @axitkhurana
    Contributor

    Looking into this one

  5. JukkaL commented on Jul 4, 2016

    @JukkaL
    CollaboratorAuthor

    This would actually be pretty nice to have as Python 2 support is going strong.

  6. rwbarton commented on Jul 7, 2016

    @rwbarton
    Contributor

    I remember @axitkhurana and I came up with a nice plan for this at PyCon. @axitkhurana did you end up getting it working? I can also reconstruct it if needed.

  7. added this to the milestone on Jul 7, 2016
  8. removed this from the milestone on Mar 29, 2017
  9. self-assigned this
    on Apr 26, 2017
  10. added a commit that references this issue on Sep 5, 2017
    3cadb01
  11. added a commit that references this issue on Sep 6, 2017
    2247870
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions