@@ -561,8 +561,9 @@ def create_endpoint(
561561 version = "1"
562562 return self ._build_endpoint (endpoint_name , account_name , version )
563563
564+ @staticmethod
564565 def source_from_path (
565- self , input_path : Union [Path , str ], fix_pdf : bool = False
566+ input_path : Union [Path , str ], fix_pdf : bool = False
566567 ) -> PathInput :
567568 """
568569 Load a document from an absolute path, as a string.
@@ -576,9 +577,8 @@ def source_from_path(
576577 input_doc .fix_pdf ()
577578 return input_doc
578579
579- def source_from_file (
580- self , input_file : BinaryIO , fix_pdf : bool = False
581- ) -> FileInput :
580+ @staticmethod
581+ def source_from_file (input_file : BinaryIO , fix_pdf : bool = False ) -> FileInput :
582582 """
583583 Load a document from a normal Python file object/handle.
584584
@@ -591,8 +591,9 @@ def source_from_file(
591591 input_doc .fix_pdf ()
592592 return input_doc
593593
594+ @staticmethod
594595 def source_from_b64string (
595- self , input_string : str , filename : str , fix_pdf : bool = False
596+ input_string : str , filename : str , fix_pdf : bool = False
596597 ) -> Base64Input :
597598 """
598599 Load a document from a base64 encoded string.
@@ -607,8 +608,9 @@ def source_from_b64string(
607608 input_doc .fix_pdf ()
608609 return input_doc
609610
611+ @staticmethod
610612 def source_from_bytes (
611- self , input_bytes : bytes , filename : str , fix_pdf : bool = False
613+ input_bytes : bytes , filename : str , fix_pdf : bool = False
612614 ) -> BytesInput :
613615 """
614616 Load a document from raw bytes.
@@ -623,8 +625,8 @@ def source_from_bytes(
623625 input_doc .fix_pdf ()
624626 return input_doc
625627
628+ @staticmethod
626629 def source_from_url (
627- self ,
628630 url : str ,
629631 ) -> UrlInputSource :
630632 """
0 commit comments