Skip to content

Commit

Permalink
fix(python-sdk): Fix retry parameters typo (#440)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyjames authored Oct 31, 2024
2 parents 2e21ac4 + 4db8fb1 commit 28121e9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/clients/python/template/src/api.py.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class {{classname}}:
'_request_auth',
'_content_type',
'_headers',
'_retry_parms'
'_retry_params'
]
)

Expand Down
2 changes: 1 addition & 1 deletion config/clients/python/template/src/sync/api.py.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class {{classname}}:
"_request_auth",
"_content_type",
"_headers",
"_retry_parms"
"_retry_params"
]
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ from {{packageName}}.client.models.tuple import ClientTuple
from {{packageName}}.client.models.write_request import ClientWriteRequest
from {{packageName}}.client.models.write_single_response import ClientWriteSingleResponse
from {{packageName}}.client.models.write_transaction_opts import WriteTransactionOpts
from {{packageName}}.configuration import RetryParams
from {{packageName}}.exceptions import ValidationException, FgaValidationException, UnauthorizedException
from {{packageName}}.models.assertion import Assertion
from {{packageName}}.models.authorization_model import AuthorizationModel
Expand Down Expand Up @@ -651,6 +652,7 @@ class TestOpenFgaClient(IsolatedAsyncioTestCase):
"page_size":50,
"continuation_token":"eyJwayI6IkxBVEVTVF9OU0NPTkZJR19hdXRoMHN0b3JlIiwic2siOiIxem1qbXF3MWZLZExTcUoyN01MdTdqTjh0cWgifQ==",
"consistency": ConsistencyPreference.MINIMIZE_LATENCY,
"retry_params": RetryParams(max_retry=3, min_wait_in_ms=1000),
}
)
self.assertIsInstance(api_response, ReadResponse)
Expand Down

0 comments on commit 28121e9

Please sign in to comment.