diff --git a/github/InputGitTreeElement.py b/github/InputGitTreeElement.py index 14da2745..75284ebd 100644 --- a/github/InputGitTreeElement.py +++ b/github/InputGitTreeElement.py @@ -59,9 +59,7 @@ class InputGitTreeElement(object): content, str ), content assert ( - sha is github.GithubObject.NotSet - or sha is None - or isinstance(sha, str) + sha is github.GithubObject.NotSet or sha is None or isinstance(sha, str) ), sha self.__path = path self.__mode = mode diff --git a/github/Team.py b/github/Team.py index 10798167..ec8b6ea4 100644 --- a/github/Team.py +++ b/github/Team.py @@ -277,10 +277,7 @@ class Team(github.GithubObject.CompletableGithubObject): :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Team.Team` """ return github.PaginatedList.PaginatedList( - github.Team.Team, - self._requester, - self.url + '/teams', - None, + github.Team.Team, self._requester, self.url + "/teams", None, ) def get_discussions(self): diff --git a/tests/Team.py b/tests/Team.py index b08f06a5..a81fe374 100644 --- a/tests/Team.py +++ b/tests/Team.py @@ -142,9 +142,7 @@ class Team(Framework.TestCase): def testGetTeams(self): nested_teams = self.team.get_teams() self.assertListKeyEqual( - nested_teams, - lambda t: t.name, - ['DummyTeam1', 'DummyTeam2', 'DummyTeam3'] + nested_teams, lambda t: t.name, ["DummyTeam1", "DummyTeam2", "DummyTeam3"] ) parent = nested_teams[0].parent self.assertEqual(self.team.name, parent.name)