Better HN
topnewbestaskshowjobs
Log inSign up

mcypher

1 karma · joined Dec 14, 2017 (8y ago) · 1 submissions

Submissions

comment 8y ago · link · parent

Unfortunately, MyPy doesn't work well with libraries or third party packages and treats external objects as `ANY` type. You can work around this with stubs but it's not fun writing type annotations for third party objects / functions. typeshed exists for the standard library and various popular third party libraries[1] to solve this very problem.

[1] https://github.com/python/typeshed