Skip to content

Enforce type hints #60

@jonathanmaw

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)

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