Fix build_configuration.py: Use type hinting in docstring instead of function annotation.

Python 3 seems to have problems with function annotations
on static methods where the return type is the same as the
containing class.