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
I've had a lot of issues with the typing inference with pyright. I want to confirm I'm not 'doing it wrong'.
How can I type-hint Pod from Client.get(), and not the generic NamespacedResource or GlobalResource?
Then you can run pyright --verbose file.py and you'll get:
/home/marc/file.py
/home/marc/file.py:28:16 - error: Expression of type "NamespacedResource" is incompatible with return type "Pod"
"NamespacedResource" is incompatible with "Pod" (reportReturnType)
The text was updated successfully, but these errors were encountered:
Issue
I've had a lot of issues with the typing inference with pyright. I want to confirm I'm not 'doing it wrong'.
How can I type-hint
Pod
fromClient.get()
, and not the genericNamespacedResource
orGlobalResource
?Example File
Then you can run
pyright --verbose file.py
and you'll get:The text was updated successfully, but these errors were encountered: