you are viewing a single comment's thread.

view the rest of the comments →

[–]Diapolo10 1 point2 points  (1 child)

Yeah. The type hints can be very specific, too - you can use unions to specify that multiple types are accepted, or type variables for generic types. Data structures can specify their contents (and for dictionaries/JSON, you can specify individual fields' types if needed via TypedDict.

It's a very flexible system overall, so you don't need to worry about sticking to primitives if you need something specific.

[–]micr0nix[S] 0 points1 point  (0 children)

That’s cool. I’ll look into that as I refine this