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
pyright .
/mypath/service.py:6:6 - error: Argument of type "(self: Self@Service, text: str) -> Coroutine[Any, Any, int]" cannot be assigned to parameter "func" of type "() -> R@api" in function "api"
Type "(self: Self@Service, text: str) -> Coroutine[Any, Any, int]" cannot be assigned to type "() -> R@api" (reportArgumentType)
1 error, 0 warnings, 0 informations
Describe the bug
It seems to occur because of usage of lower python version.
typing.Concatenate has been introduced since Python 3.10. But I'm uisng Python 3.9
bentoml
supports Python3.8 and more. So IMO you may need typing extentions to support lower versions of python.To reproduce
Expected behavior
Environment
The text was updated successfully, but these errors were encountered: