3 ms·
Like I say, it's clear the pydantic and fastapi authors were aware of this issue, but for what it's worth I confirmed that no runtime warnings were issued for P
by williamsmj 6y ago
Like I say, it's clear the pydantic and fastapi authors were aware of this issue, but for what it's worth I confirmed that no runtime warnings were issued for PEP 563.
The behavior has been available via `from __future__ import annotations` since Python 3.7. It was the very first change mentioned in the 3.7 release notes (alongside an explicit statement that it would become default four years later in 3.10):
https://github.com/python/cpython/blob/a41782cc84bcd813209a03e6e11c60e77dbc7718/Doc/whatsnew/3.7.rst#pep-563-postponed-evaluation-of-annotations https://github.com/python/cpython/blob/a41782cc84bcd813209a0...