def blend_shapes(baseShape, defaultShape):
    """Replace wildcards in one shape with entries of the other.

    :param baseShape: Primary shape, usually with wildcards.
    :type baseShape: tuple(int or None)
    :param defaultShape: Secondary shape with fallback entries.
    :type defaultShape: tuple(int or None)
    """
    return defaultShape[0] if baseShape[0] is None else baseShape[0
        ], defaultShape[1] if baseShape[1] is None else baseShape[1]
