Fix docstring in types.py

[ci skip]