[Python-ideas] Proposal: Use mypy syntax for function annotations

Paul Moore p.f.moore at gmail.com
Wed Aug 20 16:06:09 CEST 2014


On 14 August 2014 18:31, Steven D'Aprano <steve at pearwood.info> wrote:
> opt-out and use something else:
>
> @use_spam_annotations
> def frobnicate(x: spam, y: eggs)->breakfast:
    ...
Which reminds me. Why is mypy exempt from the general recommendation
to only use annotations on functions that are tagged with a decorator?

Paul.


More information about the Python-ideas mailing list