• @[email protected]
    link
    fedilink
    71 day 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
      141 day ago

      Autocorrect got you pretty bad, there.

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

    • @[email protected]
      link
      fedilink
      61 day ago

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