• jjjalljs@ttrpg.network
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    1 年前

    You can use types in Python and your tools will generate warnings

    def something(a: int) -> int: return “potato”

    will turn yellow in an IDE more advanced that notepad.

    Most editors will also show a red line where the indentation is wrong.