News for hackers. Stuff that matters.
Re:Open-sourcing MonkeyType – Let your Python code type-hint... by andybak on Friday December 22, 2017 @03:03AM (#15985950)
> Second, you can't reliable do things like "find usages" or "go to definition" because of the dynamic typing.

In my experience PyCharm can do both correctly for the vast majority of cases.

Re:Open-sourcing MonkeyType – Let your Python code type-hint... by walrus1066 on Friday December 22, 2017 @05:00AM (#15986384)
Still very limited, for example, if I have:

def some_func(foo):

   foo.run()

   ...
Find usages in the run() method will return dozens of results, the IDE can't help you any more, to find what 'foo' is at runtime.
Re:Open-sourcing MonkeyType – Let your Python code type-hint... by andybak on Monday December 25, 2017 @04:05PM (#16005703)
Isn't that basically saying "it fails in the kind of cases that wouldn't even be possible in a statically typed language"?
Re:Open-sourcing MonkeyType – Let your Python code type-hint... by lmm on Friday December 22, 2017 @05:51AM (#15986556)
Indeed; it only fails in the really fiddly cases where you need it the most.