99import httpx
1010
1111from ...lib import polling
12- from ..._types import Body , Omit , Query , Headers , NotGiven , FileTypes , omit , not_given , NOT_GIVEN
12+ from ..._types import Body , Omit , Query , Headers , NotGiven , FileTypes , omit , not_given
1313from ..._utils import maybe_transform , async_maybe_transform
1414from ..._compat import cached_property
1515from ..._resource import SyncAPIResource , AsyncAPIResource
@@ -303,8 +303,8 @@ def poll(
303303 self ,
304304 job_id : str ,
305305 * ,
306- poll_interval_ms : int | NotGiven = NOT_GIVEN ,
307- poll_timeout_ms : float | NotGiven = NOT_GIVEN ,
306+ poll_interval_ms : int | NotGiven = not_given ,
307+ poll_timeout_ms : float | NotGiven = not_given ,
308308 ** kwargs : Any ,
309309 ) -> ParsingJob :
310310 """
@@ -329,7 +329,7 @@ def create_and_poll(
329329 self ,
330330 * ,
331331 file_id : str ,
332- chunking_strategy : Literal ["page" ] | NotGiven = NOT_GIVEN ,
332+ chunking_strategy : Literal ["page" ] | NotGiven = not_given ,
333333 element_types : Optional [
334334 List [
335335 Literal [
@@ -347,10 +347,10 @@ def create_and_poll(
347347 ]
348348 ]
349349 ]
350- | NotGiven = NOT_GIVEN ,
351- return_format : Literal ["html" , "markdown" , "plain" ] | NotGiven = NOT_GIVEN ,
352- poll_interval_ms : int | NotGiven = NOT_GIVEN ,
353- poll_timeout_ms : float | NotGiven = NOT_GIVEN ,
350+ | NotGiven = not_given ,
351+ return_format : Literal ["html" , "markdown" , "plain" ] | NotGiven = not_given ,
352+ poll_interval_ms : int | NotGiven = not_given ,
353+ poll_timeout_ms : float | NotGiven = not_given ,
354354 ** kwargs : Any ,
355355 ) -> ParsingJob :
356356 """
@@ -383,7 +383,7 @@ def upload(
383383 self ,
384384 * ,
385385 file : FileTypes ,
386- chunking_strategy : Literal ["page" ] | NotGiven = NOT_GIVEN ,
386+ chunking_strategy : Literal ["page" ] | NotGiven = not_given ,
387387 element_types : Optional [
388388 List [
389389 Literal [
@@ -401,8 +401,8 @@ def upload(
401401 ]
402402 ]
403403 ]
404- | NotGiven = NOT_GIVEN ,
405- return_format : Literal ["html" , "markdown" , "plain" ] | NotGiven = NOT_GIVEN ,
404+ | NotGiven = not_given ,
405+ return_format : Literal ["html" , "markdown" , "plain" ] | NotGiven = not_given ,
406406 ** kwargs : Any ,
407407 ) -> ParsingJob :
408408 """Upload a file to the `files` API and then create a parsing job for it.
@@ -422,7 +422,7 @@ def upload_and_poll(
422422 self ,
423423 * ,
424424 file : FileTypes ,
425- chunking_strategy : Literal ["page" ] | NotGiven = NOT_GIVEN ,
425+ chunking_strategy : Literal ["page" ] | NotGiven = not_given ,
426426 element_types : Optional [
427427 List [
428428 Literal [
@@ -440,9 +440,9 @@ def upload_and_poll(
440440 ]
441441 ]
442442 ]
443- | NotGiven = NOT_GIVEN ,
444- return_format : Literal ["html" , "markdown" , "plain" ] | NotGiven = NOT_GIVEN ,
445- poll_interval_ms : int | NotGiven = NOT_GIVEN ,
443+ | NotGiven = not_given ,
444+ return_format : Literal ["html" , "markdown" , "plain" ] | NotGiven = not_given ,
445+ poll_interval_ms : int | NotGiven = not_given ,
446446 ** kwargs : Any ,
447447 ) -> ParsingJob :
448448 """Upload a file and create a parsing job, then poll until processing is complete."""
@@ -727,8 +727,8 @@ async def poll(
727727 self ,
728728 job_id : str ,
729729 * ,
730- poll_interval_ms : int | NotGiven = NOT_GIVEN ,
731- poll_timeout_ms : float | NotGiven = NOT_GIVEN ,
730+ poll_interval_ms : int | NotGiven = not_given ,
731+ poll_timeout_ms : float | NotGiven = not_given ,
732732 ** kwargs : Any ,
733733 ) -> ParsingJob :
734734 """
@@ -753,7 +753,7 @@ async def create_and_poll(
753753 self ,
754754 * ,
755755 file_id : str ,
756- chunking_strategy : Literal ["page" ] | NotGiven = NOT_GIVEN ,
756+ chunking_strategy : Literal ["page" ] | NotGiven = not_given ,
757757 element_types : Optional [
758758 List [
759759 Literal [
@@ -771,10 +771,10 @@ async def create_and_poll(
771771 ]
772772 ]
773773 ]
774- | NotGiven = NOT_GIVEN ,
775- return_format : Literal ["html" , "markdown" , "plain" ] | NotGiven = NOT_GIVEN ,
776- poll_interval_ms : int | NotGiven = NOT_GIVEN ,
777- poll_timeout_ms : float | NotGiven = NOT_GIVEN ,
774+ | NotGiven = not_given ,
775+ return_format : Literal ["html" , "markdown" , "plain" ] | NotGiven = not_given ,
776+ poll_interval_ms : int | NotGiven = not_given ,
777+ poll_timeout_ms : float | NotGiven = not_given ,
778778 ** kwargs : Any ,
779779 ) -> ParsingJob :
780780 """
@@ -807,7 +807,7 @@ async def upload(
807807 self ,
808808 * ,
809809 file : FileTypes ,
810- chunking_strategy : Literal ["page" ] | NotGiven = NOT_GIVEN ,
810+ chunking_strategy : Literal ["page" ] | NotGiven = not_given ,
811811 element_types : Optional [
812812 List [
813813 Literal [
@@ -825,8 +825,8 @@ async def upload(
825825 ]
826826 ]
827827 ]
828- | NotGiven = NOT_GIVEN ,
829- return_format : Literal ["html" , "markdown" , "plain" ] | NotGiven = NOT_GIVEN ,
828+ | NotGiven = not_given ,
829+ return_format : Literal ["html" , "markdown" , "plain" ] | NotGiven = not_given ,
830830 ** kwargs : Any ,
831831 ) -> ParsingJob :
832832 """Upload a file to the `files` API and then create a parsing job for it.
@@ -846,7 +846,7 @@ async def upload_and_poll(
846846 self ,
847847 * ,
848848 file : FileTypes ,
849- chunking_strategy : Literal ["page" ] | NotGiven = NOT_GIVEN ,
849+ chunking_strategy : Literal ["page" ] | NotGiven = not_given ,
850850 element_types : Optional [
851851 List [
852852 Literal [
@@ -864,9 +864,9 @@ async def upload_and_poll(
864864 ]
865865 ]
866866 ]
867- | NotGiven = NOT_GIVEN ,
868- return_format : Literal ["html" , "markdown" , "plain" ] | NotGiven = NOT_GIVEN ,
869- poll_interval_ms : int | NotGiven = NOT_GIVEN ,
867+ | NotGiven = not_given ,
868+ return_format : Literal ["html" , "markdown" , "plain" ] | NotGiven = not_given ,
869+ poll_interval_ms : int | NotGiven = not_given ,
870870 ** kwargs : Any ,
871871 ) -> ParsingJob :
872872 """Upload a file and create a parsing job, then poll until processing is complete."""
0 commit comments