Skip to content

Documentation: Session docstring for verify attribute should note that it supports a string value. #6859

Open
@muscovite

Description

@muscovite

Session docstring for verify attribute should note that it supports a string value.

Actual Result

Currently, the Session docstring notes that its verify attribute only supports a bool.

However, session.request supports a string for its verify arg: https://github.com/psf/requests/blob/main/src/requests/sessions.py#L550

and when a verify arg isn't passed to session.request, then session.verify is used instead:

https://github.com/psf/requests/blob/main/src/requests/sessions.py#L776
https://github.com/psf/requests/blob/main/src/requests/sessions.py#L70

Reproduction Steps

N/A

System Information

N/A

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions