Skip to content

trafaret.DataError's method as_dict returns either string or dict #68

@thenx

Description

@thenx

Is that intended to be so or just some legacy code or smth?
IMHO, it is:

  1. Misguiding
  2. Introduces necessity to validate and convert the result

Wouldn't it be better to always return dicts?

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