Skip to content

Type Annotations for kwargs and converting functions to include type casting #33

Description

@HameedFawwaz

Type annotations basically force a keyword argument to be of a certain type. Example:

def greeting(name: str) -> str:
    return 'Hello ' + name

Essentially this function takes name strictly as a string, and type for the return of this function is casted as a string, meaning that the return MUST be a string. Having this in mavctl would help with readability and would also help make developing easier.

Currently a lot of our functions aren't type casted or annotated, this isn't inherently a difficult thing to do it just takes some time.

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