|
|
Subscribe / Log in / New account

Dynamic typing

Dynamic typing

Posted Aug 14, 2019 13:47 UTC (Wed) by swilmet (subscriber, #98424)
In reply to: Dynamic typing by rahulsundaram
Parent article: Knoll: Technical vision for Qt 6

Oh, so type hints can be applied to local variables too, good to know!

Unfortunately there are lots of Python codebases out there without type hints.


to post comments

Dynamic typing

Posted Aug 14, 2019 14:02 UTC (Wed) by rahulsundaram (subscriber, #21946) [Link]

> Oh, so type hints can be applied to local variables too, good to know!

Indeed, keep in mind this is fairly recent: Python 3.6

> Unfortunately there are lots of Python codebases out there without type hints.

This is slowly changing, if you care about a codebase either submit a PR or have stub files in parallel that adds such support if upstream is not convinced of them yet along the lines of https://github.com/python/typeshed


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds