<#6454 [BUG] FlyteRemote for_endpoint method has c...
# flyte-github
c
#6454 [BUG] FlyteRemote for_endpoint method has config_file parameter incorrectly typed Issue created by ivanjut ### Describe the bug Initializing a UnionRemote object like so:
UnionRemote.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