[Python-ideas] Pre-conditions and post-conditions
INADA Naoki
songofacandy at gmail.com
Tue Aug 21 06:33:15 EDT 2018
On Thu, Aug 16, 2018 at 4:19 PM Elazar <elazarg at gmail.com> wrote:
>
> You might also be interested in pep-563. although it is not intended for design by contract, it can help (syntactically).
>
FYI, PEP 563 doesn't help it.
Read this section:
https://www.python.org/dev/peps/pep-0563/#non-typing-usage-of-annotations
"With this in mind, uses for annotations incompatible with the
aforementioned PEPs should be considered deprecated."
--
INADA Naoki <songofacandy at gmail.com>
More information about the Python-ideas
mailing list