Skip to content

Commit 8049c4e

Browse files
haikesanh
andauthored
Transform AsyncDocMethod[DocType, P, R] into Any to fix "Incorrect call arguments" warning in PyCharm (#1166)
* Transform AsyncDocMethod[DocType, P, R] into Any to fix "Incorrect call arguments" warning in PyCharm --------- Co-authored-by: h <h@localhost.com>
1 parent afd57ff commit 8049c4e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

beanie/odm/actions.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,7 @@ def after_event(
206206

207207
def wrap_with_actions(
208208
event_type: EventTypes,
209-
) -> Callable[
210-
["AsyncDocMethod[DocType, P, R]"], "AsyncDocMethod[DocType, P, R]"
211-
]:
209+
) -> Callable[["AsyncDocMethod[DocType, P, R]"], Any]:
212210
"""
213211
Helper function to wrap Document methods with
214212
before and after event listeners

0 commit comments

Comments
 (0)