Skip to content

Conversation

@qued
Copy link
Contributor

@qued qued commented Oct 20, 2023

Improves kwarg handling so that kwargs are handled explicitly when needed, and suppressed otherwise.

Testing:

CI should pass.

@qued qued changed the title chore: explicitly handle kwargs chore: streamline kwarg handling Oct 20, 2023
Comment on lines +473 to +474
extract_images_in_pdf: bool = False,
image_output_dir_path: Optional[str] = None,
Copy link
Collaborator

Choose a reason for hiding this comment

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

what's the guide line here? When do we explicit set and when do we implicitly trust a kwarg does something down the call stack? And why are those two explicit here? It doesn't seem those two parameters are modified in this function and they are just passing through?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These are explicit since we don't want them passed down to get_model, but we do want them passed down to .from_file

CHANGELOG.md Outdated
@@ -1,5 +1,6 @@
## 0.7.10-dev1
## 0.7.10-dev2
Copy link
Contributor

Choose a reason for hiding this comment

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

please make this is a release version

@qued qued enabled auto-merge (squash) October 21, 2023 06:03
@qued qued merged commit 1cf12e9 into main Oct 21, 2023
@qued qued deleted the chore/explicitly-handle-kwargs branch October 21, 2023 07:37
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.

4 participants