Skip to content

Flags for disabling Any types #3427

Description

@ilinum

In general, we want to let user limit Any types used in their code.
What we have currently is a --warn-return-any flag. Moreover, there are two open PRs:

Both of these PRs need better names for their flags. I was thinking something like --disable-any-from-unanalyzed-module and --warn-incomplete-generic-type.
I think we should try to provide as much control as possible and have both of these flags in. And then have some more general flag to enable both of them. @JukkaL suggested that perhaps we could use --strict for it.

Alternatively, we can have two flags (something like the following: --disallow-implicit-any and --disallow-all-any).

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions