def get_dbf_from_config(config: dict) -> str:
    """Find the DBF file specified in a config.

    Must return a string, not a Path, in case there's a protocol.
    """
    shp_path = config['SHAPEFILE']
    dbf_path = shp_path.replace('shp', 'dbf')
    return dbf_path