Skip to content

TypeError: 'ellipsis' object is not callable #35

@petroslamb

Description

@petroslamb

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions