Skip to content

fix: widen verify type to Union[bool, str] in ConfigDict#136

Open
santichausis wants to merge 1 commit into
typesense:masterfrom
santichausis:fix/config-verify-type
Open

fix: widen verify type to Union[bool, str] in ConfigDict#136
santichausis wants to merge 1 commit into
typesense:masterfrom
santichausis:fix/config-verify-type

Conversation

@santichausis

Copy link
Copy Markdown

Summary

  • The verify parameter in ConfigDict was typed as bool, but both httpx and requests accept either a boolean or a string path to a CA bundle for SSL verification.
  • This change widens the type annotation to Union[bool, str] to match the actual accepted values.

Closes #99

Test plan

  • mypy passes with no issues
  • ruff check passes
  • No runtime changes, type annotation only

The verify parameter is passed through to httpx/requests, which accepts
either a boolean or a string path to a CA bundle. The type annotation
was too restrictive, only allowing bool.

Closes typesense#99
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.

[typing] verify in Configuration.

2 participants