Skip to content

Commit fe99470

Browse files
Bump pylint from 2.4.4 to 2.6.0 (#27)
* Bump pylint from 2.4.4 to 2.6.0 Bumps [pylint](https://github.com/PyCQA/pylint) from 2.4.4 to 2.6.0. - [Release notes](https://github.com/PyCQA/pylint/releases) - [Changelog](https://github.com/PyCQA/pylint/blob/master/ChangeLog) - [Commits](pylint-dev/pylint@pylint-2.4.4...pylint-2.6.0) Signed-off-by: dependabot[bot] <support@github.com> * Fix black * Fix devcontainer * fix lint Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch> Co-authored-by: Pascal Vizeli <pascal.vizeli@syshack.ch>
1 parent 5539552 commit fe99470

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

pycognito/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def __setattr__(self, name, value):
9595
if name in list(self.__dict__.get("_data", {}).keys()):
9696
self._data[name] = value
9797
else:
98-
super(UserObj, self).__setattr__(name, value)
98+
super().__setattr__(name, value)
9999

100100
def save(self, admin=False):
101101
if admin:
@@ -234,7 +234,9 @@ def verify_token(self, token, id_name, token_use):
234234
issuer=unverified_claims.get("iss"),
235235
)
236236
except JWTError:
237-
raise TokenVerificationException("Your {} token could not be verified.")
237+
raise TokenVerificationException(
238+
"Your {} token could not be verified."
239+
) from None
238240
setattr(self, id_name, token)
239241
return verified
240242

requirements_test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ mock==4.0.3
22
coverage==5.3.1
33
black==20.8b1
44
flake8==3.8.4
5-
pylint==2.4.4
5+
pylint==2.6.0
66
pytest==6.2.1

0 commit comments

Comments
 (0)