ruff/scripts
Dhruv Manilawala f44acc047a
Check for `Any` in other types for `ANN401` (#5601)
## Summary

Check for `Any` in other types for `ANN401`. This reuses the logic from
`implicit-optional` rule to resolve the type to `Any`.

Following types are supported:
* `Union[Any, ...]`
* `Any | ...`
* `Optional[Any]`
* `Annotated[<any of the above variant>, ...]`
* Forward references i.e., `"Any | ..."`

## Test Plan

Added test cases for various combinations.

fixes: #5458
2023-07-13 18:19:27 +05:30
..
benchmarks markdownlint: enforce 100 char max length (#4698) 2023-05-28 22:45:56 -04:00
Dockerfile.ecosystem Remove outdated feature flag from Dockerfile.ecosystem (#4620) 2023-05-24 08:19:08 +00:00
_utils.py Use `__future__` imports in scripts (#5301) 2023-06-22 11:40:16 -04:00
add_plugin.py Fix `diagnostics` variable name in `add_plugin.py` script (#5317) 2023-06-22 20:06:47 +00:00
add_rule.py Add rule documentation template to `scripts/add_rule.py` (#5519) 2023-07-04 21:57:26 -04:00
check_docs_formatted.py [`perflint`] Add `PERF401` and `PERF402` rules (#5298) 2023-07-03 04:03:09 +00:00
check_ecosystem.py Use permalinks in ecosystem diff references (#5704) 2023-07-12 01:26:37 -05:00
ecosystem_all_check.py Use `__future__` imports in scripts (#5301) 2023-06-22 11:40:16 -04:00
ecosystem_all_check.sh Make ecosystem all check more generic (#4629) 2023-05-24 16:26:23 +02:00
ecosystem_all_check_entrypoint.sh Make ecosystem all check more generic (#4629) 2023-05-24 16:26:23 +02:00
generate_known_standard_library.py Remove HashMap and HashSet for known-standard-library detection (#5345) 2023-06-23 19:59:03 +00:00
generate_mkdocs.py Move some MkDocs responsibilities around (#5542) 2023-07-05 22:06:01 +00:00
pyproject.toml Check for `Any` in other types for `ANN401` (#5601) 2023-07-13 18:19:27 +05:30
transform_readme.py Use `__future__` imports in scripts (#5301) 2023-06-22 11:40:16 -04:00
update_ambiguous_characters.py [`perflint`] Add `PERF401` and `PERF402` rules (#5298) 2023-07-03 04:03:09 +00:00
update_schemastore.py Use SSH clones in `update_schemastore.py` (#5322) 2023-06-23 09:50:10 -04:00