from__future__importannotationsUSING_STRINGS=True# dataclass_module_2.py and dataclass_module_2_str.py are identical# except only the latter uses string annotations.fromdataclassesimportdataclass,InitVarfromtypingimportClassVarT_CV2=ClassVar[int]T_CV3=ClassVarT_IV2=InitVar[int]T_IV3=InitVar@dataclassclassCV:T_CV4=ClassVarcv0:ClassVar[int]=20cv1:ClassVar=30cv2:T_CV2cv3:T_CV3not_cv4:T_CV4# When using string annotations, this field is not recognized as a ClassVar.@dataclassclassIV:T_IV4=InitVariv0:InitVar[int]iv1:InitVariv2:T_IV2iv3:T_IV3not_iv4:T_IV4# When using string annotations, this field is not recognized as an InitVar.