def expire_tag(self, name: str):
        """Expire a tag in an object.

        Args:
            name: The name of the tag to expire.
        """
        for i, tag in enumerate(self.tags):
            if tag.name == name:
                self.tags[i].expires = datetime.datetime.now(tz=datetime.timezone.utc)
                self.tags[i].fresh = False
                break
        self.save()
Expire a tag in an object.

        Args:
            name: The name of the tag to expire.
        
core/schemas/model.py