АП
Size: a a a
АП
СВ
T
ПД
T
T
The problem is that postponed annotations are set to be come default in 3.10, features of which will be frozen in about three week.
Even worse, there's no way to switch back to the current behaviour.
СВ
The problem however is that trying to evaluate those strings to get the real annotation objects is really hard, perhaps impossible to always do correctly
СВ
T
СВ
Even if typing.get_type_hints() was faultless, it would still be massively slower than the current semantics or PEP 649 (see below).
T
root@6dbfabbc92bc:/src# python3 -V
Python 3.10.0a7
root@6dbfabbc92bc:/src# nose2
........................................................................................................................................
----------------------------------------------------------------------
Ran 136 tests in 0.088s
OK
СВ
T
T
СВ
T
T
class PydTodo(BaseModel):
id: int
title: str
description: str
T
СВ
T