Skip to content

examples: run mypy on repo example #1697

Closed

Description

@jku

repository example is not completely annotated. mypy config (currently in setup.cfg) does not cover the example: it should cover the whole examples/ directory.

It looks like this means some minor annotation fixes in the example (mostly to deal with roles dictionary items).

Activity

  1. lukpueh commented on Nov 30, 2021

    @lukpueh
    Member

    Quick question, is there a consensus (#1130, #1301..?) to use type annotations everywhere?

  2. jku commented on Nov 30, 2021

    @jku
    MemberAuthor

    I ... don't know. I like them so much now that I just kind of assumed.

    To be clear, I do think that

    • we should aim to cover most of our code with static typing
    • we should document this as the safest way to use the APIs: if applications check types statically that means our validation code can concentrate on validating deserialized json (instead of concentrating on validating application provided input)
  3. MVrachev commented on Dec 1, 2021

    @MVrachev
    Collaborator

    I can take this one as I already added examples locally when addressing comments for #1699.

  4. self-assigned this
    on Dec 1, 2021
  5. added this to the Sprint 13 milestone on Dec 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions