(original) (raw)
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 as is.
That's better. I don't necessarily care if there will be a warning when a string is given as annotation, but if the idea is to simplify things for the future and get rid of strings to represent types, then this would be a good moment to gently "enforce" it.
––Koos
+ Koos Zevenhoven + http://twitter.com/k7hoven +