-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Description
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:
- Disallow implicit Any types from Silent Imports #3405 (Flag to Disallow implicit Any types from Silent Imports)
- Add --warn-implicit-any #3141 (This PR covers Any types from not specifying generic type arguments)
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).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels