Skip to content

Commit

Permalink
Fix lint in Python3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanaasagi committed Jun 18, 2021
1 parent d1236ba commit 999fb71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions github/AuthenticatedUser.py
Expand Up @@ -1465,6 +1465,6 @@ def _useAttributes(self, attributes):
if "url" in attributes: # pragma no branch
self._url = self._makeStringAttribute(attributes["url"])
if "two_factor_authentication" in attributes:
self._two_factor_authentication = (
self._makeBoolAttribute(attributes["two_factor_authentication"])
self._two_factor_authentication = self._makeBoolAttribute(
attributes["two_factor_authentication"]
)
2 changes: 1 addition & 1 deletion tests/AuthenticatedUser.py
Expand Up @@ -76,7 +76,7 @@ def testAttributes(self):
self.assertEqual(self.user.url, "https://api.github.com/users/jacquev6")
self.assertEqual(self.user.node_id, "MDQ6VXNlcjMyNzE0Ng==")
self.assertEqual(repr(self.user), 'AuthenticatedUser(login="jacquev6")')
self.assertEqual(self.user.two_factor_authentication, True)
self.assertTrue(self.user.two_factor_authentication)

def testEditWithoutArguments(self):
self.user.edit()
Expand Down

0 comments on commit 999fb71

Please sign in to comment.