def verify_age(u: User) -> bool:
return hasattr(u, "age") and u.age is not None
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
replies:
def verify_age(u: User) -> bool:
return hasattr(u, "age") and u.age is not None