From 6bae9e5caeb422db721ed1f8a7bd89a7e48fe43d Mon Sep 17 00:00:00 2001 From: Lars Kellogg-Stedman Date: Tue, 23 Mar 2021 18:55:26 -0400 Subject: [PATCH] fix bad assertions in github.Project.edit (#1817) The assertions in github.Project.edit looked like the result of a bad copy-paste operation: they were all making assertions about the `name` parameter. This commit fixes them so they are checking different parameters. --- github/Project.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/github/Project.py b/github/Project.py index d1635f3f..80466ea6 100644 --- a/github/Project.py +++ b/github/Project.py @@ -165,8 +165,8 @@ class Project(github.GithubObject.CompletableGithubObject): :rtype: None """ assert name is github.GithubObject.NotSet or isinstance(name, str), name - assert body is github.GithubObject.NotSet or isinstance(name, str), body - assert state is github.GithubObject.NotSet or isinstance(name, str), state + assert body is github.GithubObject.NotSet or isinstance(body, str), body + assert state is github.GithubObject.NotSet or isinstance(state, str), state assert organization_permission is github.GithubObject.NotSet or isinstance( organization_permission, str ), organization_permission