def read_from(file_: str) -> list:
    """Generate list of passports as dictionaries from file."""
    passports = []
    passport = dict()  # init
    with open(file_, "r") as f:
        for line in f.readlines():
            if not line[:-1]:  # omit \n character
                passports.append(passport)
                passport = dict()  # reset
            else:
                for field in line[:-1].split(" "):
                    key, _, value = field.partition(":")
                    passport[key] = value
    return passports