<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def user(self, email: str) -> models.User: """Fetch a user from the database."""

        return self.User.query.filter_by(email=email).first()