pyrefly icon indicating copy to clipboard operation
pyrefly copied to clipboard

Feature: historical positional param syntax

Open yangdanny97 opened this issue 8 months ago • 2 comments

https://typing.python.org/en/latest/spec/historical.html#positional-only-parameters

yangdanny97 avatar Mar 27 '25 23:03 yangdanny97

What is this?

ndmitchell avatar Mar 28 '25 08:03 ndmitchell

The syntax for positional-only parameters is new in 3.8, so before that, you would use a double-underscore-prefix naming convention to indicate positional-only parameters (https://typing.python.org/en/latest/spec/historical.html#positional-only-parameters). Typeshed switched over to the dedicated syntax a while back, so I think it matters now only for third-party libraries that might still be using the old convention.

rchen152 avatar Mar 28 '25 17:03 rchen152

For the good first issue tag, are there any pointers we could give for where to start looking at the changes that need to be made?

connernilsen avatar Jun 11 '25 23:06 connernilsen

@connernilsen updated the issue descrption

yangdanny97 avatar Jun 12 '25 03:06 yangdanny97

Assigned, thanks! Let me know if you have any questions

yangdanny97 avatar Jun 19 '25 19:06 yangdanny97

Thank you! Have reached out to you for further questions.

yamgent avatar Jun 20 '25 08:06 yamgent