"""Lab 11: look up, filter, and update the pets at an animal shelter.

Author: YOUR NAME
Version: THE DATE
"""

from shelter_data import SHELTER


def available(shelter: dict) -> list[dict]:
    """Find the pets that are still waiting for a home.

    Args:
        shelter: The shelter dictionary.

    Returns:
        A new list of the pet dictionaries whose "adopter" is None, in the
        same order as in the shelter.
    """


def find_matches(shelter: dict, species: str, max_age: int, trait: str) -> list[str]:
    """Find the names of the available pets that fit what an adopter wants.

    Args:
        shelter: The shelter dictionary.
        species: The kind of pet, such as "dog" or "cat".
        max_age: The oldest age the adopter will consider.
        trait: One trait the pet must have, such as "calm".

    Returns:
        A new list of the names of the available pets of that species, no
        older than max_age, that have the trait.
    """


def adopt(shelter: dict, name: str, adopter: str) -> bool:
    """Record that a person adopted a pet.

    Args:
        shelter: The shelter dictionary, which is changed in place.
        name: The name of the pet.
        adopter: The name of the person adopting it.

    Returns:
        True if an available pet has that name and is now adopted, or else
        False (the name isn't in the shelter, or that pet already has a home).
    """


if __name__ == "__main__":
    print(available(SHELTER))
