Commit 018ccb3
committed
fix: add api_token parameter to copy() methods for consistency
The copy() methods in Replicate and AsyncReplicate were missing the
api_token parameter that was added to __init__ in commit 8c05e64. This
was causing test failures since the test suite expects the copy() method
signature to match the constructor signature.
This commit adds the api_token parameter to both copy() methods with the
same handling logic as in __init__:
- Accepts both api_token and bearer_token
- Raises error if both are provided
- Maps api_token to bearer_token internally1 parent c02614d commit 018ccb3
1 file changed
+20
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
| 337 | + | |
337 | 338 | | |
338 | 339 | | |
339 | 340 | | |
| |||
348 | 349 | | |
349 | 350 | | |
350 | 351 | | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
351 | 361 | | |
352 | 362 | | |
353 | 363 | | |
| |||
720 | 730 | | |
721 | 731 | | |
722 | 732 | | |
| 733 | + | |
723 | 734 | | |
724 | 735 | | |
725 | 736 | | |
| |||
734 | 745 | | |
735 | 746 | | |
736 | 747 | | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
737 | 757 | | |
738 | 758 | | |
739 | 759 | | |
| |||
0 commit comments