Document how to write aliases that are recognized by mypy#650
Conversation
euresti
left a comment
There was a problem hiding this comment.
Just some nits and a question.
Thanks for doing this.
|
I actually had issues getting mypy to recognize my wrappers. I think the package implementing the wrappers needs to contain a |
|
Also, what would make us not hold our nose? I have a couple of ideas:
This looks great but is probably pretty hard in mypy. Also how many defaults do we allow to set. We'd want to iterate on the API.
|
Co-authored-by: David Euresti <david@euresti.com>
92027b6 to
4f84e13
Compare
This seems worth a news ticket I think! I like both but someone intimate with mypy has to investigate what you wrote. :| |
|
I have just used the information involved: https://gist.github.com/hynek/1e3844d0c99e479e716169034b5fa963#file-attrs_ng_plugin-py Thanks again! |
This fIxEs #630 as far as we can fix it. I would love to add a more concrete example (a minimal example that people can just drop in and that explains how to drop in) but I guess I'll leave that as a contribution opportunity to someone else since I don't have the bandwidth for that ATM.