@@ -61,9 +61,7 @@ def account_delete_profile_photo(self):
6161 )
6262 return r
6363
64- def account_get_photo (
65- self , dbx_account_id , size , circle_crop , expect_account_photo
66- ):
64+ def account_get_photo (self , dbx_account_id , size , circle_crop , expect_account_photo ):
6765 """
6866 This lovely endpoint gets the account photo of a given user.
6967
@@ -93,9 +91,7 @@ def account_get_photo(
9391 <https://docs.python.org/2/library/contextlib.html#contextlib.closing>`_
9492 context manager to ensure this.
9593 """
96- arg = account .AccountPhotoGetArg (
97- dbx_account_id , size , circle_crop , expect_account_photo
98- )
94+ arg = account .AccountPhotoGetArg (dbx_account_id , size , circle_crop , expect_account_photo )
9995 r = self .request (
10096 account .get_photo ,
10197 "account" ,
@@ -130,9 +126,7 @@ def account_get_photo_to_file(
130126 If this raises, ApiError will contain:
131127 :class:`dropbox.account.AccountPhotoGetError`
132128 """
133- arg = account .AccountPhotoGetArg (
134- dbx_account_id , size , circle_crop , expect_account_photo
135- )
129+ arg = account .AccountPhotoGetArg (dbx_account_id , size , circle_crop , expect_account_photo )
136130 r = self .request (
137131 account .get_photo ,
138132 "account" ,
@@ -645,9 +639,7 @@ def file_properties_templates_update_for_user(
645639 If this raises, ApiError will contain:
646640 :class:`dropbox.file_properties.ModifyTemplateError`
647641 """
648- arg = file_properties .UpdateTemplateArg (
649- template_id , name , description , add_fields
650- )
642+ arg = file_properties .UpdateTemplateArg (template_id , name , description , add_fields )
651643 r = self .request (
652644 file_properties .templates_update_for_user ,
653645 "file_properties" ,
@@ -2120,9 +2112,7 @@ def files_get_thumbnail_v2(
21202112 <https://docs.python.org/2/library/contextlib.html#contextlib.closing>`_
21212113 context manager to ensure this.
21222114 """
2123- arg = files .ThumbnailV2Arg (
2124- resource , format , size , mode , quality , exclude_media_info
2125- )
2115+ arg = files .ThumbnailV2Arg (resource , format , size , mode , quality , exclude_media_info )
21262116 r = self .request (
21272117 files .get_thumbnail_v2 ,
21282118 "files" ,
@@ -2179,9 +2169,7 @@ def files_get_thumbnail_to_file_v2(
21792169 If this raises, ApiError will contain:
21802170 :class:`dropbox.files.ThumbnailV2Error`
21812171 """
2182- arg = files .ThumbnailV2Arg (
2183- resource , format , size , mode , quality , exclude_media_info
2184- )
2172+ arg = files .ThumbnailV2Arg (resource , format , size , mode , quality , exclude_media_info )
21852173 r = self .request (
21862174 files .get_thumbnail_v2 ,
21872175 "files" ,
@@ -2535,9 +2523,7 @@ def files_list_revisions(
25352523 If this raises, ApiError will contain:
25362524 :class:`dropbox.files.ListRevisionsError`
25372525 """
2538- arg = files .ListRevisionsArg (
2539- path , mode , limit , before_rev , include_restorable_info
2540- )
2526+ arg = files .ListRevisionsArg (path , mode , limit , before_rev , include_restorable_info )
25412527 r = self .request (
25422528 files .list_revisions ,
25432529 "files" ,
@@ -2712,9 +2698,7 @@ def files_move_batch(
27122698 )
27132699 return r
27142700
2715- def files_move_batch_v2 (
2716- self , entries , autorename = False , allow_ownership_transfer = False
2717- ):
2701+ def files_move_batch_v2 (self , entries , autorename = False , allow_ownership_transfer = False ):
27182702 """
27192703 Move multiple files or folders to different locations at once in the
27202704 user's Dropbox. Note that we do not currently support case-only
@@ -2828,9 +2812,7 @@ def files_paper_create(self, f, path, import_format):
28282812 )
28292813 return r
28302814
2831- def files_paper_update (
2832- self , f , path , import_format , doc_update_policy , paper_revision = None
2833- ):
2815+ def files_paper_update (self , f , path , import_format , doc_update_policy , paper_revision = None ):
28342816 """
28352817 Updates an existing Paper doc with the provided content.
28362818
@@ -2856,9 +2838,7 @@ def files_paper_update(
28562838 If this raises, ApiError will contain:
28572839 :class:`dropbox.files.PaperUpdateError`
28582840 """
2859- arg = files .PaperUpdateArg (
2860- path , import_format , doc_update_policy , paper_revision
2861- )
2841+ arg = files .PaperUpdateArg (path , import_format , doc_update_policy , paper_revision )
28622842 r = self .request (
28632843 files .paper_update ,
28642844 "files" ,
@@ -3077,9 +3057,7 @@ def files_save_url_check_job_status(self, async_job_id):
30773057 )
30783058 return r
30793059
3080- def files_search (
3081- self , path , query , start = 0 , max_results = 100 , mode = files .SearchMode .filename
3082- ):
3060+ def files_search (self , path , query , start = 0 , max_results = 100 , mode = files .SearchMode .filename ):
30833061 """
30843062 Searches for files and folders. Note: Recent changes will be reflected
30853063 in search results within a few seconds and older revisions of existing
@@ -3626,9 +3604,7 @@ def files_upload_session_finish_batch_check(self, async_job_id):
36263604 )
36273605 return r
36283606
3629- def files_upload_session_start (
3630- self , f , close = False , session_type = None , content_hash = None
3631- ):
3607+ def files_upload_session_start (self , f , close = False , session_type = None , content_hash = None ):
36323608 """
36333609 Upload sessions allow you to upload a single file in one or more
36343610 requests, for example where the size of the file is greater than 150
@@ -4117,9 +4093,7 @@ def paper_docs_list(
41174093 "docs/list is deprecated." ,
41184094 DeprecationWarning ,
41194095 )
4120- arg = paper .ListPaperDocsArgs (
4121- filter_by , sort_by , sort_order , limit , stop_at_date
4122- )
4096+ arg = paper .ListPaperDocsArgs (filter_by , sort_by , sort_order , limit , stop_at_date )
41234097 r = self .request (
41244098 paper .docs_list ,
41254099 "paper" ,
@@ -4308,9 +4282,7 @@ def paper_docs_update(self, f, doc_id, doc_update_policy, revision, import_forma
43084282 "docs/update is deprecated." ,
43094283 DeprecationWarning ,
43104284 )
4311- arg = paper .PaperDocUpdateArgs (
4312- doc_id , doc_update_policy , revision , import_format
4313- )
4285+ arg = paper .PaperDocUpdateArgs (doc_id , doc_update_policy , revision , import_format )
43144286 r = self .request (
43154287 paper .docs_update ,
43164288 "paper" ,
@@ -4531,9 +4503,7 @@ def paper_folders_create(self, name, parent_folder_id=None, is_team_folder=None)
45314503 # ------------------------------------------
45324504 # Routes in riviera namespace
45334505
4534- def riviera_get_markdown_async (
4535- self , file_id_or_url = None , enable_ocr = False , embed_images = False
4536- ):
4506+ def riviera_get_markdown_async (self , file_id_or_url = None , enable_ocr = False , embed_images = False ):
45374507 """
45384508 Asynchronous document-to-markdown conversion for supported file formats.
45394509
@@ -5230,9 +5200,7 @@ def sharing_get_shared_links(self, path=None):
52305200 )
52315201 return r
52325202
5233- def sharing_list_file_members (
5234- self , file , actions = None , include_inherited = True , limit = 100
5235- ):
5203+ def sharing_list_file_members (self , file , actions = None , include_inherited = True , limit = 100 ):
52365204 """
52375205 Use to obtain the members who have been invited to a file, both
52385206 inherited and uninherited members.
@@ -5325,9 +5293,7 @@ def sharing_list_file_members_continue(self, cursor):
53255293 )
53265294 return r
53275295
5328- def sharing_list_folder_members (
5329- self , shared_folder_id , actions = None , limit = 1000 , path = None
5330- ):
5296+ def sharing_list_folder_members (self , shared_folder_id , actions = None , limit = 1000 , path = None ):
53315297 """
53325298 Returns shared folder membership by its folder ID.
53335299
@@ -5583,9 +5549,7 @@ def sharing_list_shared_links(self, path=None, cursor=None, direct_only=None):
55835549 )
55845550 return r
55855551
5586- def sharing_modify_shared_link_settings (
5587- self , url , settings , remove_expiration = False
5588- ):
5552+ def sharing_modify_shared_link_settings (self , url , settings , remove_expiration = False ):
55895553 """
55905554 Modify the shared link's settings. If the requested visibility conflict
55915555 with the shared links policy of the team or the shared folder (in case
@@ -5696,9 +5660,7 @@ def sharing_relinquish_file_membership(self, file):
56965660 )
56975661 return None
56985662
5699- def sharing_relinquish_folder_membership (
5700- self , shared_folder_id , leave_a_copy = False
5701- ):
5663+ def sharing_relinquish_folder_membership (self , shared_folder_id , leave_a_copy = False ):
57025664 """
57035665 The current user relinquishes their membership in the designated shared
57045666 folder and will no longer have access to the folder. A folder owner
@@ -6108,9 +6070,7 @@ def sharing_update_file_policy(
61086070 If this raises, ApiError will contain:
61096071 :class:`dropbox.sharing.UpdateFilePolicyError`
61106072 """
6111- arg = sharing .UpdateFilePolicyArg (
6112- file , actions , link_settings , viewer_info_policy
6113- )
6073+ arg = sharing .UpdateFilePolicyArg (file , actions , link_settings , viewer_info_policy )
61146074 r = self .request (
61156075 sharing .update_file_policy ,
61166076 "sharing" ,
0 commit comments