Skip to content

Better typing of Element #83

Description

@lord-haffi

This is a follow-up issue on #80 and #81. When reintroducing the py.typed file (#82), I get some type errors related to the following problem.

There are many fields typed using the Element = str | list[str] type. This creates some annoying problems as many fields like segment.tag or message.receiver are now str | list[str] while in realitiy it should always be str, shouldn't it?

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