Skip to content

Accept field instances as field type declartion #264

Description

@turicas

If we accept field instances we can support easily customize fields' behavior without needing to subclass, like:

table = rows.import_from_csv('filename.csv',
        force_types={'data': rows.fields.DateField(input_format='%d/%m/%Y')})

We may force all received items (in force_types and fields) to be Field instances (not classes).

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

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions