typesense-python icon indicating copy to clipboard operation
typesense-python copied to clipboard

[typing] `verify` in `Configuration`.

Open haoyun opened this issue 4 months ago • 0 comments

The verify parameter in the Configuration

https://github.com/typesense/typesense-python/blob/9777059d77dfd15a554c9584200050c6f1783f1e/src/typesense/configuration.py#L70 https://github.com/typesense/typesense-python/blob/9777059d77dfd15a554c9584200050c6f1783f1e/src/typesense/configuration.py#L91

is passed to requests, but requests accepts a bool | str.

https://github.com/psf/requests/blob/420d16bc7ef326f7b65f90e4644adc0f6a0e1d44/src/requests/api.py#L39-L41

    :param verify: (optional) Either a boolean, in which case it controls whether we verify
            the server's TLS certificate, or a string, in which case it must be a path
            to a CA bundle to use. Defaults to ``True``.

haoyun avatar Sep 17 '25 13:09 haoyun