-
Notifications
You must be signed in to change notification settings - Fork 437
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
don't special-case params named __ for historical positional params
Summary: https://typing.readthedocs.io/en/latest/spec/historical.html#positional-only-parameters The rule is: > all parameters with names that begin but don’t end with __ are assumed to be positional-only Strictly reading the rules, `__` ends with `__` so it should not be positional only. However, Pyre special-cases `__` to count as positional. Pyright doesn't have the special case, and Mypy doesn't implement this check from what I can tell. Reviewed By: stroxler Differential Revision: D60151159 fbshipit-source-id: 4ccb8133d6860ae844bc4a3c7071cb4a7605d3da
- Loading branch information
1 parent
7f1a3cb
commit aea4c1f
Showing
3 changed files
with
6 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters