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
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:![image](https://user-images.githubusercontent.com/8549565/226190099-45a282f4-5ac3-4adc-8e8e-b2b03816664a.png)
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