Skip to content

Do some type checking in functions without annotations #374

Closed

Description

@JukkaL

Currently we don't type check functions without type annotations, even in modules that import typing. However, it might be better to run type checker for all functions. In functions without annotations every local variable (and argument) would have implicit Any types. This would let us catch some simple type errors within expressions, at least.

Activity

  1. sanxiyn commented on Aug 24, 2015

    @sanxiyn
    Contributor

    In functions without annotations every local variable (and argument) would have implicit Any types.

    Can one assume types for self arguments in methods?

  2. JukkaL commented on Jun 5, 2017

    @JukkaL
    CollaboratorAuthor

    Closing this since --check-untyped-defs provides this functionality.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions