• @Strykker
    link
    32 hours ago

    It’s python, just use type hinting already and your linter will catch that.

    Also some winters can look at the use of food and see the type being passed in.

    • Ephera
      link
      fedilink
      62 hours ago

      Autocorrect got you pretty bad, there.

      I was very confused, why we’re suddenly talking about rationing food during winter. 🙃

      • @Strykker
        link
        11 hour ago

        Holy crap that’s wild, new phones autocorrect is out to get me

    • @FizzyOrange
      link
      42 hours ago

      Yes you can use static type hinting and the static type checker (Mypy or Pyright) will catch that. Linters (Pylint) won’t.