herr kaste

Results 355 comments of herr kaste

I don't think this is a good change. You need to handle input via stdin. Most of the flake8 plugins for the IDEs send the buffer contents via stdin.

It should probably work with temp files just fine if we take a given filename and do the `--shadow-file filename tempfilename` thing.

Replaces #15

The easy way is to ignore `mockito`, e.g. something like this in `mypy.ini`. ``` [mypy-mockito] ignore_missing_imports = True ``` Full typing support would be some significant work. What do you...

Funny enough, we actually run mypy here as a GitHub action. https://github.com/kaste/mockito-python/blob/9c56559cd376d131e2db3510ad165142250272f2/.github/workflows/test-lint-go.yml#L64-L78

Very promising. I wouldn't mind if you split the commit. The fix of the ellipsis test can be one commit; the small additional test in `staticmethods_test` can be one separate...

This is a *lot* harder to read than the first version. This will take a sec. General note as we need to stay green per commit: you can always add...

Ok, doing `should_discard_self` based on the `original_method` is in tricky territory, but this one works for me: ``` def have_prepended_arg(self, method_name): """ Returns if the method will have a prepedend...

I think this is okay. Honestly I tried to implement this before but failed. Unfortunately there is a huge "But...". The commits are not readable or tell a story. You...

That is by design. ~~Initially `thenAnswer` was used internally and then exposed later~~*. Typically it makes writing answer-functions easier. What's the use case here? Ideally answers from stubs/mocks are constants...