cuddly-jelly-27016
05/14/2025, 11:25 PMUnionRemote.for_endpoint(endpoint=UNION_ENDPOINT) gives a Pyright typing error:
Argument of type "None" cannot be assigned to parameter "config_file" of type "str | ConfigFile" in function "for_endpoint"
Looking at the source code (here), it appears the config_file parameter is not typed as Optional, but defaults to None, causing the typing error.
### Expected behavior
I don't expect there to be a typing error upon UnionRemote initialization
### Additional context to reproduce
No response
### Screenshots
No response
### Are you sure this issue hasn't been raised already?
• Yes
### Have you read the Code of Conduct?
• Yes
flyteorg/flyte