[docs] [issue37134] Use PEP570 syntax in the documentation