Skip to content

[ADR] type hints #97

@utnapischtim

Description

@utnapischtim

Type Hints

  • type hints for translatable strings
    • flask_babel:LazyString
    • flask_babel:gettext returns a already translated string. there is no type to check other then string which doesn't help in the translatable context

examples

  • in Check of in invenio-checks it would be nice to know if id is of type Final[str] Final and title are of type LazyString. that would people who are working on translations help to know if those strings have to be marked as to translatable strings

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