Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion boxsdk/exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,4 @@ def __str__(self):
f'\nHeaders: {headers}'


__all__ = list(map(str, ['BoxException', 'BoxAPIException', 'BoxOAuthException', 'BoxNetworkException']))
__all__ = ['BoxException', 'BoxAPIException', 'BoxOAuthException', 'BoxNetworkException']
9 changes: 6 additions & 3 deletions boxsdk/object/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__all__ = list(map(str, [
__all__ = [
'collaboration',
'collaboration_allowlist',
'collaboration_allowlist_entry',
Expand All @@ -13,8 +13,10 @@
'file_version',
'file_version_retention',
'folder',
'folder_lock',
'group',
'group_membership',
'invite',
'legal_hold',
'legal_hold_policy',
'legal_hold_policy_assignment',
Expand All @@ -24,6 +26,7 @@
'retention_policy',
'retention_policy_assignment',
'search',
'sign_request',
'storage_policy',
'storage_policy_assignment',
'terms_of_service',
Expand All @@ -35,5 +38,5 @@
'upload_session',
'webhook',
'watermark',
'web_link',
]))
'web_link'
]
2 changes: 1 addition & 1 deletion boxsdk/util/enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from enum import EnumMeta

__all__ = list(map(str, ['ExtendableEnumMeta']))
__all__ = ['ExtendableEnumMeta']

from typing import Any

Expand Down
2 changes: 1 addition & 1 deletion boxsdk/util/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,4 @@ def sanitize_dictionary(dictionary: Mapping) -> dict:
logging.getLogger(__name__).addHandler(logging.NullHandler())


__all__ = list(map(str, ['setup_logging', 'sanitize_dictionary']))
__all__ = ['setup_logging', 'sanitize_dictionary']
10 changes: 0 additions & 10 deletions docs/usage/sign_requests.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ method will create a Sign Request. You need to provide at least one file (from w

<!-- sample post_sign_requests -->
```python
from boxsdk.object.sign_request import SignRequest

source_file = {
'id': '12345',
'type': 'file'
Expand Down Expand Up @@ -56,8 +54,6 @@ will return an iterable that will page through all the Sign Requests. This metho

<!-- sample get_sign_requests -->
```python
from boxsdk.object.sign_request import SignRequest

sign_requests = client.get_sign_requests()
for sign_request in sign_requests:
print(f'(Sign Request ID: {sign_request.id})')
Expand All @@ -74,8 +70,6 @@ The `fields` parameter is used to specify what additional properties should be r

<!-- sample get_sign_requests_id -->
```python
from boxsdk.object.sign_request import SignRequest

sign_request = client.sign_request(sign_request_id='12345').get()
print(f'Sign Request ID is {sign_request.id}')
```
Expand All @@ -89,8 +83,6 @@ Calling [`sign_requests.cancel()`][cancel-sign-request] will cancel a created Si

<!-- sample post_sign_requests_id_cancel -->
```python
from boxsdk.object.sign_request import SignRequest

sign_request = client.sign_request(sign_request_id='12345')
cancelled_sign_request = sign_request.cancel()
print(f'Cancelled Sign Request status is {cancelled_sign_request.status}')
Expand All @@ -106,8 +98,6 @@ There is an 10-minute cooling-off period between re-sending reminder emails.

<!-- sample post_sign_requests_id_resend -->
```python
from boxsdk.object.sign_request import SignRequest

sign_request = client.sign_request(sign_request_id='12345')
sign_request.resend()
```
Expand Down