News for hackers. Stuff that matters.
Re:Practical Python Programming by heavyset_go on Thursday June 18, 2020 @09:08PM (#23569982)
It's idiomatic. Type annotations aren't enforced at runtime.
Re:Practical Python Programming by int_19h on Thursday June 18, 2020 @09:31PM (#23570119)
It's not idiomatic to force a specific type like that even so. Idiomatic code would accept any type that has the same operations (and their semantics) as int.