Skip to content

Add optional output_dir to write_search_results_to_file()#11

Merged
jason-raitz merged 1 commit intomainfrom
add-output-dir-to-write-method
May 1, 2026
Merged

Add optional output_dir to write_search_results_to_file()#11
jason-raitz merged 1 commit intomainfrom
add-output-dir-to-write-method

Conversation

@jason-raitz
Copy link
Copy Markdown
Contributor

non-breaking change

Copy link
Copy Markdown
Member

@anarchivist anarchivist left a comment

Choose a reason for hiding this comment

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

don't love the change (i was mostly fine with #10), but it's fine if we're refactoring it soon.

Comment thread tind_client/client.py

def write_search_results_to_file(
self, query: str = "", output_file_name: str = "tind.xml"
self, query: str = "", output_file_name: str = "tind.xml", output_dir: str = ""
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

i understand this (based on getting up to speed on in slack) but i think adding output_dir honestly makes this more confusing. imo, output_file_name should just take a str | os.PathLike-typed value. but shrug if we're thinking about refactoring this soon anyway...

- adds an optional output_dir parameter to overide the default
@jason-raitz jason-raitz force-pushed the add-output-dir-to-write-method branch from 4c685fa to 8311266 Compare May 1, 2026 15:54
@jason-raitz jason-raitz marked this pull request as ready for review May 1, 2026 15:54
@jason-raitz jason-raitz merged commit e0b6265 into main May 1, 2026
6 checks passed
@jason-raitz jason-raitz deleted the add-output-dir-to-write-method branch May 1, 2026 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants