MCPcopy Create free account
hub / github.com/dropbox/dropbox-sdk-python / PollEmptyResult

Class PollEmptyResult

dropbox/async_.py:156–181  ·  view source on GitHub ↗

Result returned by methods that poll for the status of an asynchronous job. Upon completion of the job, no additional information is returned. This class acts as a tagged union. Only one of the ``is_*`` methods will return true. To get the associated value of a tag (if one exists),

Source from the content-addressed store, hash-verified

154PollResultBase_validator = bv.Union(PollResultBase)
155
156class PollEmptyResult(PollResultBase):
157 """
158 Result returned by methods that poll for the status of an asynchronous job.
159 Upon completion of the job, no additional information is returned.
160
161 This class acts as a tagged union. Only one of the ``is_*`` methods will
162 return true. To get the associated value of a tag (if one exists), use the
163 corresponding ``get_*`` method.
164
165 :ivar async.PollEmptyResult.complete: The asynchronous job has completed
166 successfully.
167 """
168
169 # Attribute is overwritten below the class definition
170 complete = None
171
172 def is_complete(self):
173 """
174 Check if the union tag is ``complete``.
175
176 :rtype: bool
177 """
178 return self._tag == 'complete'
179
180 def _process_custom_annotations(self, annotation_type, field_path, processor):
181 super(PollEmptyResult, self)._process_custom_annotations(annotation_type, field_path, processor)
182
183PollEmptyResult_validator = bv.Union(PollEmptyResult)
184

Callers 1

async_.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected