Skip to content

Commit 5d80481

Browse files
authored
fix: Add missing box_sign object to __all__ list (#708)
Closes: SDK-1779
1 parent d33d16d commit 5d80481

File tree

5 files changed

+9
-16
lines changed

5 files changed

+9
-16
lines changed

boxsdk/exception.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,4 @@ def __str__(self):
112112
f'\nHeaders: {headers}'
113113

114114

115-
__all__ = list(map(str, ['BoxException', 'BoxAPIException', 'BoxOAuthException', 'BoxNetworkException']))
115+
__all__ = ['BoxException', 'BoxAPIException', 'BoxOAuthException', 'BoxNetworkException']

boxsdk/object/__init__.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__all__ = list(map(str, [
1+
__all__ = [
22
'collaboration',
33
'collaboration_allowlist',
44
'collaboration_allowlist_entry',
@@ -13,8 +13,10 @@
1313
'file_version',
1414
'file_version_retention',
1515
'folder',
16+
'folder_lock',
1617
'group',
1718
'group_membership',
19+
'invite',
1820
'legal_hold',
1921
'legal_hold_policy',
2022
'legal_hold_policy_assignment',
@@ -24,6 +26,7 @@
2426
'retention_policy',
2527
'retention_policy_assignment',
2628
'search',
29+
'sign_request',
2730
'storage_policy',
2831
'storage_policy_assignment',
2932
'terms_of_service',
@@ -35,5 +38,5 @@
3538
'upload_session',
3639
'webhook',
3740
'watermark',
38-
'web_link',
39-
]))
41+
'web_link'
42+
]

boxsdk/util/enum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from enum import EnumMeta
77

8-
__all__ = list(map(str, ['ExtendableEnumMeta']))
8+
__all__ = ['ExtendableEnumMeta']
99

1010
from typing import Any
1111

boxsdk/util/log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,4 @@ def sanitize_dictionary(dictionary: Mapping) -> dict:
9696
logging.getLogger(__name__).addHandler(logging.NullHandler())
9797

9898

99-
__all__ = list(map(str, ['setup_logging', 'sanitize_dictionary']))
99+
__all__ = ['setup_logging', 'sanitize_dictionary']

docs/usage/sign_requests.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ method will create a Sign Request. You need to provide at least one file (from w
2424

2525
<!-- sample post_sign_requests -->
2626
```python
27-
from boxsdk.object.sign_request import SignRequest
28-
2927
source_file = {
3028
'id': '12345',
3129
'type': 'file'
@@ -56,8 +54,6 @@ will return an iterable that will page through all the Sign Requests. This metho
5654

5755
<!-- sample get_sign_requests -->
5856
```python
59-
from boxsdk.object.sign_request import SignRequest
60-
6157
sign_requests = client.get_sign_requests()
6258
for sign_request in sign_requests:
6359
print(f'(Sign Request ID: {sign_request.id})')
@@ -74,8 +70,6 @@ The `fields` parameter is used to specify what additional properties should be r
7470

7571
<!-- sample get_sign_requests_id -->
7672
```python
77-
from boxsdk.object.sign_request import SignRequest
78-
7973
sign_request = client.sign_request(sign_request_id='12345').get()
8074
print(f'Sign Request ID is {sign_request.id}')
8175
```
@@ -89,8 +83,6 @@ Calling [`sign_requests.cancel()`][cancel-sign-request] will cancel a created Si
8983

9084
<!-- sample post_sign_requests_id_cancel -->
9185
```python
92-
from boxsdk.object.sign_request import SignRequest
93-
9486
sign_request = client.sign_request(sign_request_id='12345')
9587
cancelled_sign_request = sign_request.cancel()
9688
print(f'Cancelled Sign Request status is {cancelled_sign_request.status}')
@@ -106,8 +98,6 @@ There is an 10-minute cooling-off period between re-sending reminder emails.
10698

10799
<!-- sample post_sign_requests_id_resend -->
108100
```python
109-
from boxsdk.object.sign_request import SignRequest
110-
111101
sign_request = client.sign_request(sign_request_id='12345')
112102
sign_request.resend()
113103
```

0 commit comments

Comments
 (0)