mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-23 15:04:20 +00:00
Add pyright to precommit (#2796)
This commit is contained in:
@@ -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):
|
||||
|
Reference in New Issue
Block a user