Skip to content

Signature Error for arcgis.gis._impl._content_manager.Folder.add in documentation #2273

@cookiedan42

Description

@cookiedan42

Describe the bug
add method for Folder object claims to return Future | Job, but returns Job, breaking code which relied on it being a Future

To Reproduce
Steps to reproduce the behavior:

item_folder = folders_obj.get(folder=portal_foldername)
add_job = item_folder.add(item_properties=item_props, file=tempLocalFilePath)

# expect add_job to be a concurrent.futures.Future object
add_job.done()

error:

AttributeError: 'Job' object has no attribute 'done'

Expected behavior
A clear and concise description of what you expected to happen.

Platform (please complete the following information):

  • OS: docker arm64
  • Python API Version 2.4.1 on python 3.12

Additional context
documentation also does not link to Job object, making using this method challenging to follow

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions