def get_post(post_id: str) -> PostType: instance = PostModel.filter(id=post_id).first_or_404() return PostType(instance)