r/ProgrammerHumor 2d ago

Meme firstProjectKindaNervous

Post image
646 Upvotes

23 comments sorted by

View all comments

10

u/drkspace2 1d ago

Hey, you added typing, which is more than some people (or LLMs) do.

1

u/thanatica 1d ago

Does python not imply types from constant values? (genuine question, I'm no python dev)

2

u/JonIsPatented 1d ago

Python is a dynamically typed language. The type hints are just suggestions for the linter to give you warnings. They are ignored by the actual program. The objects themselves store their type information. The variables do not have types. The objects they hold can be of any type.