yukinarit/envclasses

TypeError: 'ellipsis' object is not callable

Opened this issue · 0 comments

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.