def is_module_library(fname: mesonlib.FileOrString) -> bool:
    '''
    Check if the file is a library-like file generated by a module-specific
    target, such as GirTarget or TypelibTarget
    '''
    suffix = fname.split('.')[-1]
    return suffix in {'gir', 'typelib'}

    Check if the file is a library-like file generated by a module-specific
    target, such as GirTarget or TypelibTarget
    
mesonbuild/modules/__init__.py