-
Notifications
You must be signed in to change notification settings - Fork 216
Closed
Copy link
Labels
bugSomething isn't workingSomething isn't workingserverRelated to the LSP serverRelated to the LSP server
Milestone
Description
Summary
This small script gives a wrong type hint for the argument x and y which should be part of *names but are interpreted as the value for name and the is_symmetric argument of another overloaded variant:
from typing import overload, Optional, Sequence
@overload
def S(name: str, is_symmetric: Optional[bool] = None) -> str:
pass
@overload
def S(*names: str, is_symmetric: Optional[bool] = None) -> Sequence[str]:
pass
def S():
pass
b = S('x', 'y') # argument hints for the wrong overloaded variant, return type is correctHere is the playground link:
Version
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingserverRelated to the LSP serverRelated to the LSP server