You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However,
when calling for the acquire_by_conf() method, IDE (Pycharm) throws this warning:
Seems like instead of MobileDevice return type, type checker expects Coroutine[Any, Any, MobileDevice] (Not sure if this is indeed the issue).
Is there a way to preserve return type of the decorated function for the type checker?
P.S. By removing the decorator from the method, warning from IDE disappears.
I am using python 3.7.15
The text was updated successfully, but these errors were encountered:
Hi,
I am using the following function as a decorator for other functions with the help of wrapt.decorator:
Basically, it logs start and finish of the inner function execution.
Using it as a simple decorator:
However,
when calling for the acquire_by_conf() method, IDE (Pycharm) throws this warning:
Seems like instead of MobileDevice return type, type checker expects Coroutine[Any, Any, MobileDevice] (Not sure if this is indeed the issue).
Is there a way to preserve return type of the decorated function for the type checker?
P.S. By removing the decorator from the method, warning from IDE disappears.
I am using python 3.7.15
The text was updated successfully, but these errors were encountered: