Skip to content

Fix iterating through ObjectStoragePath - #57156

Merged
bolkedebruin merged 1 commit into
apache:mainfrom
mixilchenko:object-storage-path-lines-iteration
Oct 26, 2025
Merged

Fix iterating through ObjectStoragePath#57156
bolkedebruin merged 1 commit into
apache:mainfrom
mixilchenko:object-storage-path-lines-iteration

Conversation

@mixilchenko

Copy link
Copy Markdown
Contributor

Problem: Iterating through ObjectStoragePath raises TypeError: '_io.TextIOWrapper' object is not subscriptable

This is happening because _TrackingFileWrapper implements __getitem__ which is used by python iteration logic if there is no explicit __iter__ method.

Comment threadtask-sdk/src/airflow/sdk/io/path.py
@mixilchenko
mixilchenkoforce-pushed the object-storage-path-lines-iteration branch 2 times, most recently from 31c172a to cafa725CompareOctober 24, 2025 06:40
@amoghrajesh

Copy link
Copy Markdown
Contributor

cc @bolkedebruin your forte :)

@mixilchenko
mixilchenkoforce-pushed the object-storage-path-lines-iteration branch from cafa725 to defa9d3CompareOctober 25, 2025 09:33

@bolkedebruinbolkedebruin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@bolkedebruin
bolkedebruin merged commit 4962b35 into apache:mainOct 26, 2025
80 checks passed
@kaxilkaxil added this to the Airflow 3.1.2 milestone Oct 26, 2025
kaxil pushed a commit that referenced this pull request Oct 31, 2025
kaxil pushed a commit that referenced this pull request Oct 31, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@mixilchenko@amoghrajesh@bolkedebruin@KoviAnusha@kaxil