validate: seems to be confused by Union[str, Path]
vs Path
instance
#85
Labels
bug
Something isn't working
Union[str, Path]
vs Path
instance
#85
Description
I suspect this may be a known issue, caused by having more than one plausible conversion applied to the union type, but:
This confusing type union came from my discovering that I don't actually want strict mode, I want the type coercion to happen, and removing the
strict=True
from various things. The original type annotation wasUnion[str, Path, PosixPath]
because I found this on macOS, and worked around it blindly thinking it was odd, butstrict=True
required it.Now I'm pretty sure it is a ... well, not ideal, but probably an issue picking which type to coerce into or something?
The text was updated successfully, but these errors were encountered: