-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support all kinds of functions arguments
- Loading branch information
Showing
4 changed files
with
325 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
from __future__ import annotations | ||
|
||
import typing | ||
from typing import Any | ||
|
||
|
||
def f_posonly(posonly, /): | ||
... | ||
|
||
|
||
def f_posonly_default(posonly=0, /): | ||
... | ||
|
||
|
||
def f_posonly_poskw(posonly, /, poskw): | ||
... | ||
|
||
|
||
def f_posonly_poskw_default(posonly, /, poskw=0): | ||
... | ||
|
||
|
||
def f_posonly_default_poskw_default(posonly=0, /, poskw=1): | ||
... | ||
|
||
|
||
def f_posonly_poskw_kwonly(posonly, /, poskw, *, kwonly): | ||
... | ||
|
||
|
||
def f_posonly_poskw_kwonly_default(posonly, /, poskw, *, kwonly=0): | ||
... | ||
|
||
|
||
def f_posonly_poskw_default_kwonly_default(posonly, /, poskw=0, *, kwonly=1): | ||
... | ||
|
||
|
||
def f_posonly_default_poskw_default_kwonly_default(posonly=0, /, poskw=1, *, kwonly=2): | ||
... | ||
|
||
|
||
def f_var(*args: str, kw=1, **kwargs: int): | ||
... | ||
|
||
|
||
def f_annorations(a: str, b: Any, c: typing.Optional[typing.List[int]], d: float | None): | ||
... |
Oops, something went wrong.