Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: remove unnecessary keyword-only constraint
  • Loading branch information
bzoracler authored May 10, 2024
commit 9655775384bf9ae8b2c69e4b07f0baafd0dbaf3e
4 changes: 2 additions & 2 deletions stdlib/_ast.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ class FunctionDef(stmt):
body: list[stmt],
decorator_list: list[expr],
returns: expr | None = None,
*,
type_comment: str | None = None,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think type_comment needs to be keyword-only on this overload.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 9655775

*,
type_params: list[type_param],
**kwargs: Unpack[_Attributes],
) -> None: ...
Expand Down Expand Up @@ -160,8 +160,8 @@ class AsyncFunctionDef(stmt):
body: list[stmt],
decorator_list: list[expr],
returns: expr | None = None,
*,
type_comment: str | None = None,
*,
type_params: list[type_param],
**kwargs: Unpack[_Attributes],
) -> None: ...
Expand Down