Follow

Me when I first learnt about type hints and type checkers:
Wow, so powerful for writing better, cleaner, safer code! Never again will I write
```
def f(x, y, z): ...
```
Instead, I shall write:
```
def f(x: Any, y: Any, z: Any) -> Any: ...
```
mypy reports no errors... we're good to go!

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.