ruff
cf48ad7b - Consider single element subscript expr for implicit optional (#5717)

Commit
2 years ago
Consider single element subscript expr for implicit optional (#5717) ## Summary Consider single element subscript expr for implicit optional. On `main`, the cases where there is only a single element in the subscript list was giving false positives such as for the following: ```python typing.Union[None] typing.Literal[None] ``` ## Test Plan `cargo test` --------- Co-authored-by: Charlie Marsh <charlie.r.marsh@gmail.com>
Author
Parents
Loading