LightningCLI does not recognize arguments when importing annotations from __future__ #15741
Labels
bug
Something isn't working
duplicate
This issue or pull request already exists
lightningcli
pl.cli.LightningCLI
Bug description
I'm using Python 3.8 and to make it compatible with annotations from Python 3.9, I do an import:
But with this import, the LightningCLI gives me an error that my arguments are not recognized. Neither from the CLI nor from the yaml configuration files. See the minimal example below.
I've spent several days trying to figure out what the problem is.
How to reproduce the bug
Error messages and logs
Without import:
With import:
Environment
More info
No response
cc @carmocca @mauvilsa
The text was updated successfully, but these errors were encountered: