[docs] [issue15029] Update Defining New Types chapter according to PEP 253