News for hackers. Stuff that matters.
Re:Python’s “type hints” are a bit of a disappointment to me by bscphil on Thursday April 21, 2022 @09:41PM (#31117310)
Exactly right, great example. And furthermore:

    >>> foo: int = 'hello'
    >>> type(foo)
    <class 'str'>
Python's type annotations are annotations. Types are being enforced at runtime, it's just that some are thinking that annotations have some effect on the interpreter, when they do not.

There are no comments on this comment yet.