sobolevn

Results 1343 comments of sobolevn

After running tests with my fix: > ___________________________________ summary ____________________________________ > ERROR: py26: InterpreterNotFound: python2.6 > py27: commands succeeded > py34: commands succeeded

I guess it is also on topic.

You can use something like [`git-secret`](https://github.com/sobolevn/git-secret) or `blackbox` to handle that.

Quick update: I have released `AttrOf` type that does exactly the same thing. Docs: https://github.com/wemake-services/mypy-extras/

Yes, you are right. I had experience with some `mypy` plugins, it should not be *too* hard. Basically there's a special API to get things from `SymbolTableNode`: https://github.com/python/mypy/blob/95eff27adb1fae7b1ec4a7315524ebfdcebf6e2b/mypy/nodes.py#L2883 For example,...

@kurtbrose sadly, that's not how it works. Here's quite a revelant example: `mypy` plugin for django models: https://github.com/typeddjango/django-stubs/blob/master/mypy_django_plugin/django/context.py#L127

I will probably drop a simple prototype, it would be easier to discuss the existing code 🙂

Super-early prototype is done.

@kurtbrose awesome! Thanks.