-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong "Overloaded function implementation does not accept all possible arguments" #11004
Comments
You may have already figured this out, but there is a simple workaround. If you change the second overload to include an explicit @overload
def connect(
self,
*,
row_factory: None = None,
**kwargs: Union[None, int, str],
) -> "Connection[Tuple[Any, ...]]":
... |
@erictraut No, I didn't notice that, thank you. It is interesting, however I prefer to use a Another thing that makes the error go is to use |
I think that's the issue I tried to resolve in #10390. |
Amazing @dlax, didn't know you had looked into it so much to propose a MR! 🙂 |
@dlax Do you plan to merge the change soon? |
@adam-grant-hendry, the PR is still pending review; and then possible merge by a project member. |
Bug Report
The following example (reduced from psycopg 3) seems to be a false positive:
To Reproduce
The file is flagged with the error:
Your Environment
The text was updated successfully, but these errors were encountered: