TypeError: General.partition() takes 1 positional argument but 2 were given

Hello everyone ! Please I have no idea , why I receive this error , I tried several solutions but nothing seem to work. Have u faced this issue ?

filename = “cours.pdf”

with open(filename, “rb”) as f:
files=shared.Files(
content=f.read(),
file_name=filename,
)

req = shared.PartitionParameters(
files=files,
strategy=“hi_res”,
hi_res_model_name=“yolox”,
pdf_infer_table_structure=True,
skip_infer_table_types=,
)

try:
resp = s.general.partition(req)
pdf_elements = dict_to_elements(resp.elements)
except SDKError as e:
print(e)

seems faulty.

It may be a method attached to an object and takes no parameter (besides the hidden self parameter), but req was passed (so two parameters were given: self, the hidden argument corresponding to the object, and req)

Check the documentation.

Yeah exactly , that what I did . I checked the documentation but I didn’t find any lead. Also I made sure if I missed any file(code source) provided by the creator of the course.

Can you post the documentation URL?