Skip to content

Move iterable checks from type_cast_value to __init__ #1806

Closed
@davidism

Description

@davidism

Both the errors raised in type_cast_value should be in __init__ instead. The composite error should be removed from type_cast_value, it makes no sense at runtime. Both places that value is iterated in type_cast_value should raise a BadParameter error instead of TypeError.

Originally posted by @davidism in #1805 (comment)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions