Skip to content

Conversation

@scottlawsonbc
Copy link

@scottlawsonbc scottlawsonbc commented Dec 17, 2025

The docstring for APIClient incorrectly stated that the default value for the version parameter is '1.35'. In reality, the default is None, which triggers automatic API version detection (same behavior as 'auto').

This commit updates the docstring to accurately reflect:

  • The default value is None, not '1.35'
  • Both None and 'auto' trigger automatic version detection
  • The parameter type should be str or None to reflect the actual default

Fixes incorrect documentation that could mislead users about the API client's default behavior.

The docstring incorrectly stated that the default value for the `version`
parameter is `'1.35'`. In reality, the default is `None`, which triggers
automatic API version detection (same behavior as `'auto'`).

This commit updates the docstring to accurately reflect:
- The default value is `None`, not `'1.35'`
- Both `None` and `'auto'` trigger automatic version detection
- The parameter type should be `str or None` to reflect the actual default

Fixes incorrect documentation that could mislead users about the API
client's default behavior.

Signed-off-by: Scott Lawson <scottlawsonbc@gmail.com>
``unix:///var/run/docker.sock`` or ``tcp://127.0.0.1:1234``.
version (str): The version of the API to use. Set to ``auto`` to
automatically detect the server's version. Default: ``1.35``
version (str or None): The version of the API to use. If ``None``
Copy link
Author

@scottlawsonbc scottlawsonbc Dec 17, 2025

Choose a reason for hiding this comment

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

see line 204 below to confirm the logic for "version" matches this docstring.

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.

1 participant