[code-quality] Type hinting parameters of standard library functions