Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: 'ellipsis' object is not callable #35

Open
petroslamb opened this issue Oct 13, 2022 · 0 comments
Open

TypeError: 'ellipsis' object is not callable #35

petroslamb opened this issue Oct 13, 2022 · 0 comments

Comments

@petroslamb
Copy link

I've set up a dataclass envclass, with the following attribute:

RETRIES: tuple[float, ...] = (0.1, 0.5, 2)

my .env.local file contains:

RETRIES="[1.0, 1.0]"

When I load the configuration I get:

TypeError: 'ellipsis' object is not callable
  • If i use a type tuple[float, float], this works fine.
  • If I don't add the variable in my env file, the default works fine.
  • Using parenthesis on the env variable instead of brackets did not work.
  • Also using typing.Tuple did not help.

Not sure what to do here, only workaround is a List.

Python version 3.9, envclasses 0.2.8.

Thanks for your good work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant