There's also this:
https://paper.dropbox.com/doc/Type-system-improvements--Aoe13oDG8qQ6CdxhUpaE...
IIUC the proposals there are the state of the art. You can also search
https://github.com/python/typing/issues
On Tue, Nov 12, 2019 at 6:51 PM Teddy Liu
Thank you for that information! Based on the edit dates on this document, it doesn't seem like there's been much momentum behind this project. Have people agreed upon some syntax for it yet? If not, who will get to determine that in the future? Also, I don't have a good concept of whether supporting these features would require a direct modification of the python typing library, mypy, or numpy stubs.
Would love to hear more about that!
On Tue, Nov 12, 2019 at 8:56 PM Sahil Zubair
wrote: Hi Teddy,
You may already be aware of the github issue here and some of the resources on it: https://github.com/numpy/numpy-stubs/issues/5 One of the resources on the github issue is a google doc you can find here https://docs.google.com/document/d/1vpMse4c6DrWH5rq2tQSx3qwP_m_0lyn-Ij4WHqQq..., it provides some good framing. https://docs.google.com/document/d/1vpMse4c6DrWH5rq2tQSx3qwP_m_0lyn-Ij4WHqQq...
Additionally, I wrote a "demo" mypy plugin that attempts to do some basic form array shape checking for a handful of functions (matmul, some reductions). https://github.com/szb0/shape-types
Hope this finds you well,
Sahil
On Tue, Nov 12, 2019 at 8:41 PM Teddy Liu < theodore_liu@college.harvard.edu> wrote:
Hi!
I'm a student at Harvard studying CS right now. For my thesis, I'm really interested in adding types to numpy as well as general capabilities for extending the Python system with "dependent" types. I want to add the feature of statically determining the alignment of array dimensions.
Let me know how I can get started on this project!
Sincerely, Teddy _______________________________________________ Typing-sig mailing list -- typing-sig@python.org To unsubscribe send an email to typing-sig-leave@python.org https://mail.python.org/mailman3/lists/typing-sig.python.org/
_______________________________________________ Typing-sig mailing list -- typing-sig@python.org To unsubscribe send an email to typing-sig-leave@python.org https://mail.python.org/mailman3/lists/typing-sig.python.org/
-- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)* http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-c...