Sylveon@lemmy.blahaj.zonetoProgramming@programming.dev•Is TypeScript a fad or is my manager delusional?
2·
8 months agoI haven’t used Python since around the time when type hints first became a thing so I might be completely wrong here, but isn’t this because Python just generally ignores type hints? If you ran a static type checker like mypy over this it would complain right?
Also, if you actually did anything with the list that you couldn’t do with a bool (e.g. len(value)
), it would throw an error too because Python is actually pretty strict about types, just only at runtime. That’s why it’s usually considered to be strongly typed, although people don’t seem to agree what exactly that’s supposed to mean.
Real programmers use a magnetized needle and a steady hand.