Hi there. How do you configure VS Code linting when writing Prefect flows? I'd like to be able to use type annotations.
I am getting a few different errors that are distracting.
Here are two examples:
Copy code
Secret.load("uko-user-id").get() # Cannot access member "get" for type "Coroutine[Any, Any, Unknown]" Member "get" is unknown PylancereportGeneralTypeIssues
Copy code
with SnowflakeConnector.load("snowflake-block") as snowflake: # Object of type "Coroutine[Any, Any, Unknown]" cannot be used with "with" because it does not implement __enter__ PylancereportGeneralTypeIssues
...
👍 1
f
Farhood Etaati
07/29/2023, 8:39 AM
I usually force the typehint when I'm loading the block, but it would be great if prefect could fix the typehinting result for block loading.
Copy code
snowflake: SnowflakeConnector
with SnowflakeConnector.load("snowflake-block") as snowflake:
...
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.