Skip to content

Checking for default value generates a KeyError if none is set #96

Open
@vlsd

Description

@vlsd

Consider the following:

ts = TimeSeries()
hasattr(ts, 'default')

it results in a KeyError. First, this is a bad behavior (bug) and should be fixed. Secondly, how should one properly check if a default is set or not? Maybe a has_default() method would be useful for this?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions