Skip to content

Enforce type hints #60

Description

@jonathanmaw

While working on this, I have been frustrated by model diffs producing unexpected results because they have tried to compare a list of E-mail addresses with a tuple of E-mail addresses, and finding that they differ.

There are, broadly, 2 possible ways to fix this:

  1. Use mypy, a static type checker for python, to check that we're using appropriate types.
  2. Use type_enforced (https://github.com/connor-makowski/type_enforced) to decorate the User and Group class (and hope that it's compatible with the dataclasses decorator)

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions