Skip to content

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

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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