Repository: auth0/auth0-python

Issue:
Version 3.23.0  No longer supports RestClientOptions
If you look at the Auth0 class  constructor the rest_options parameter is not used.   This means rate limit retries will not be used.

Discussion:

Patch:
diff --git a/auth0/v3/management/auth0.py b/auth0/v3/management/auth0.py
index fb6bc90..c28bfcb 100644
--- a/auth0/v3/management/auth0.py
+++ b/auth0/v3/management/auth0.py
@@ -80,7 +80,15 @@ class Auth0(object):
 
             for name, cls in modules.items():
                 cls = asyncify(cls)
-                setattr(self, name, cls(domain=domain, token=token, rest_options=None))
+                setattr(
+                    self,
+                    name,
+                    cls(domain=domain, token=token, rest_options=rest_options),
+                )
         else:
             for name, cls in modules.items():
-                setattr(self, name, cls(domain=domain, token=token, rest_options=None))
+                setattr(
+                    self,
+                    name,
+                    cls(domain=domain, token=token, rest_options=rest_options),
+                )


Test patch:
diff --git a/auth0/v3/test/management/test_auth0.py b/auth0/v3/test/management/test_auth0.py
index ea2d618..15ce786 100644
--- a/auth0/v3/test/management/test_auth0.py
+++ b/auth0/v3/test/management/test_auth0.py
@@ -29,6 +29,7 @@ from ...management.tickets import Tickets
 from ...management.user_blocks import UserBlocks
 from ...management.users import Users
 from ...management.users_by_email import UsersByEmail
+from ...rest import RestClientOptions
 
 
 class TestAuth0(unittest.TestCase):
@@ -120,3 +121,8 @@ class TestAuth0(unittest.TestCase):
 
     def test_users(self):
         self.assertIsInstance(self.a0.users, Users)
+
+    def test_args(self):
+        rest_options = RestClientOptions(retries=99)
+        auth0 = Auth0(self.domain, self.token, rest_options=rest_options)
+        self.assertEqual(auth0.users.client.options.retries, 99)