Skip to content
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

Incorrect call arguments in PyCharm #1106

Open
MagicWinnie opened this issue Jan 6, 2025 · 4 comments
Open

Incorrect call arguments in PyCharm #1106

MagicWinnie opened this issue Jan 6, 2025 · 4 comments

Comments

@MagicWinnie
Copy link

Describe the bug
When calling methods like .save(), .insert(), .update(), and .delete() I get the following warning from PyCharm:

Parameter(s) unfilled
Possible callees:(..., ...: [Any, Any])

Although, everything works fine, so it is something related to typing.

To Reproduce

from beanie import Document


class Foo(Document):
    bar: int


async def func():
    foo = Foo(bar=1)

    await foo.save()  # warning here
    await foo.insert()  # warning here
    await foo.update()  # warning here
    await foo.delete()  # warning here

Expected behavior
No warning is displayed.

Additional context
PyCharm 2024.3.1.1
Python 3.10
Beanie 1.28.0

@dantetemplar
Copy link
Contributor

upvote

@MagicWinnie

This comment has been minimized.

@MagicWinnie

This comment has been minimized.

@MagicWinnie
Copy link
Author

Previous two solutions do not fix the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants