ruff
9180cd09 - [ty] Disallow `Final` in function parameter/return-type annotations (#19480)

Commit
172 days ago
[ty] Disallow `Final` in function parameter/return-type annotations (#19480) ## Summary Disallow `Final` in function parameter- and return-type annotations. [Typing spec](https://typing.python.org/en/latest/spec/qualifiers.html#uppercase-final): > `Final` may only be used in assignments or variable annotations. Using it in any other position is an error. In particular, `Final` can’t be used in annotations for function arguments ## Test Plan Updated MD test
Author
Parents
Loading