I believe it should be ": Any".
Hey, you're leaning into it too much!
Who are people who are against typing in this day and age?
> Who are people who are against typing in this day and age?
People who don't find the benefits of typing are worth the overhead?
Python is, after all, a dynamically-typed language, so it is, surely, not too surprising that those who use it might include those who want a ... dynamic language ?
If it's too much to take the joys of Java are freely available.
> are worth the overhead?
What overhead, specifically?
I've found it reduces overhead. Rather than using English to describe the types, in the comments/docstrings, I can just type the terse type hint in the function definition, and leave the rest to the documentation renderer. If you don't document anyways, sure.
Re:Proposing a Struct Syntax for Python
by yuppiepuppie on Thursday June 15, 2023 @03:14AM
(#36337374)
I use python daily and dont use typing. The reason being that I choose python for it readability. And I find typed python to be less readable than non-typed python. If I wanted a typed language, I wouldnt want python.
Someone who really wants to avoid type annotations at all costs can just use ": object" everywhere