Add pyright to precommit (#2796)

This commit is contained in:
Mark Towers
2022-05-09 16:22:49 +01:00
committed by GitHub
parent 40c26ab9c6
commit 31e6f23e67
6 changed files with 61 additions and 56 deletions

View File

@@ -148,10 +148,7 @@ class APIError(Error):
return self._message
def __str__(self):
try: # Python 2
return unicode(self).encode("utf-8")
except NameError: # Python 3
return self.__unicode__()
return self.__unicode__()
class APIConnectionError(APIError):