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 3b52e7f
Show file tree
Hide file tree
Showing 3 changed files with 5 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
2 changes: 2 additions & 0 deletions tox.ini
Expand Up @@ -21,6 +21,8 @@ skip_install = true
deps =
pre-commit
mypy
types-requests
types-jwt
commands =
pre-commit run --all-files --show-diff-on-failure
; Run mypy outside pre-commit because pre-commit runs mypy in a venv
Expand Down

0 comments on commit 3b52e7f

Please sign in to comment.