Skip to content

Commit

Permalink
fix: Add missing box_sign object to __all__ list (#708)
Browse files Browse the repository at this point in the history
Closes: SDK-1779
  • Loading branch information
lukaszsocha2 committed Mar 3, 2022
1 parent d33d16d commit 5d80481
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 16 deletions.
2 changes: 1 addition & 1 deletion boxsdk/exception.py
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
@@ -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
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
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
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

0 comments on commit 5d80481

Please sign in to comment.