-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
Description
Bug Report
Stubgen generates incorre stubs when a non default keyword-only argument is positioned after the asterix symbol in the signature.
To Reproduce
- Create a function:
def func(*, non_default_kwarg: bool, default_kwarg: bool = True):
pass- Generate stubs
Expected Behavior
def func(*, non_default_kwarg: bool, default_kwarg: bool=...) -> Any: ...Actual Behavior
def func(non_default_kwarg: bool, *, default_kwarg: bool=...) -> Any: ...Your Environment
- Mypy version used: 0.812
Reactions are currently unavailable