Comment

Comment by wodenokoto

    import numpy as np

    def f(x:numpy.array):
        pass
Since numpy doesn’t exist in my namespace I get a runtime error (NameError) for a part of my code that supposedly isn’t used.

I just feel like this should throw errors when running mypy and not when running my script.

parent wodenokoto 6 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton