Skip to content

[Property] Init allows invalid dtypes #253

@mpsonntag

Description

@mpsonntag

Currently Property.__init__ does not check odML dtypes. The following example currently would work:

p = odml.Property(name="test", value=[1, 2, 3], dtype="someText")

When assigning the dtype of an existing Property, only supported dtypes are allowed. The following would raise an AttributeError:

p.dtype = "someText"

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions