typeshed
typeshed copied to clipboard
move re.error into re.pyi
implementation is in sre_constants / re._constants, but it sets it's __module__ to re
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉
I'm making this a draft pending discussion in https://github.com/python/typeshed/issues/11141
I'm inclined to think using an explicit __module__
attribute (like runtime does) is a better way to handle this discrepancy.