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

We cannot use type annotations in these cases because the names of the
containing class, or later classes in the same file, are not defined
at the point in time when the function annotation is evaluated.