OK, this is fine. It won't affect mypy (which will continue to treat string
literals the same as before) but it will require an update to typing.py --
hope you are working on that with Ivan.
On Mon, Nov 20, 2017 at 9:58 AM, Lukasz Langa wrote:
> I agree with you. The special handling of outermos
On Mon, Nov 20, 2017 at 7:58 PM, Lukasz Langa wrote:
> I agree with you. The special handling of outermost strings vs. strings
> embedded inside annotations bugged me a lot. Now you convinced me that this
> functionality should be moved to `get_type_hints()` and the __future__
> import shouldn't
I agree with you. The special handling of outermost strings vs. strings
embedded inside annotations bugged me a lot. Now you convinced me that this
functionality should be moved to `get_type_hints()` and the __future__ import
shouldn't try to special-case this one instance, while leaving others
Hi,
Overall I am strongly in favour of this PEP. It pretty much cures all
the ongoing pain of using PEP 3017 annotations for type hints.
There is one thing I don't like however, and that is treating strings as
if the quotes weren't there.
While this seems like a superficial simplification to