Skip to content

SDK task.upload_data() cannot be used with resources of the Path type #9072

Open
@zhiltsov-max

Description

Actions before raising this issue

  • I searched the existing issues and did not find anything similar.
  • I read/searched the docs

Steps to Reproduce

SDK has a Task.upload_data(), which claims to support StrPath-typed resources, but it is actually only works for LOCAL resource_type.

resources: Sequence[StrPath],

Expected Behavior

Task should be created.

Possible Solution

Remove invalid error here:

for resource in resources:
if not isinstance(resource, str):
raise TypeError(f"resources: expected instances of str, got {type(resource)}")
, replace it with a type conversion.

Context

No response

Environment

Metadata

Labels

Easy to fixThe issue is easy to fix and probably it will be release in a next minor releasebugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions