<#1300 [BUG] FlyteFile type parameter causes type ...
# flytekit
a
#1300 [BUG] FlyteFile type parameter causes type checker failures Issue created by tekumara FlyteFile uses type parameters to specify metadata about the file type, eg:
Copy code
return FlyteFile["jpg"](path=out_path)
This causes my type checker (pylance/pyright) to complain because
"jpg"
is not defined. And when a type parameter isn't supplied in a signature (ie: it's just FlyteFile) then the return type is partially unknown and inferred as
FlyteFile[Unknown]
NB: The same applies to
FlyteDirectory
. flyteorg/flyte