Skip to content

Comment on Metaprogramming in Pythonparent

Comments

MyPy doesn't require everything to be type-hinted. It's fine to sprinkle in hints where you want them.

when people using your library need pylance type hinting to show up for all your public methods, and those public methods are in fact generated as proxies for some other object. This was trivial as a dynamic runtime thing before, now must be statically generated. I can share examples if you'd like.

So the only problem is type hinting in IDEs. That's a small price to pay.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.