Fix typing of credentials parameter of make_client in the Python SDK (#5609)

### Motivation and context
This is a very simple pull request. The type of the credentials
parameter of `make_client` is currently `Optional[Tuple[int, int]]`, but
it should be `Optional[Tuple[str, str]]` as used by `Client#login`. This
PR makes that change.

### How has this been tested?
The typing does not affect the functionality of the code (just the
warnings I get in an IDE).
main
Padraig X. Lamont 3 years ago committed by GitHub
parent 4e3d81ccae
commit a9476cb623
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -48,6 +48,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed HRNet serverless function runtime error on images with alpha channel (<https://github.com/opencv/cvat/pull/5570>) - Fixed HRNet serverless function runtime error on images with alpha channel (<https://github.com/opencv/cvat/pull/5570>)
- Preview & chunk cache settings are ignored (<https://github.com/opencv/cvat/pull/5569>) - Preview & chunk cache settings are ignored (<https://github.com/opencv/cvat/pull/5569>)
- Export annotations to Azure container (<https://github.com/opencv/cvat/pull/5596>) - Export annotations to Azure container (<https://github.com/opencv/cvat/pull/5596>)
- Fix the type of the credentials parameter of make_client from the Python SDK
### Security ### Security
- Fixed vulnerability with social authentication (<https://github.com/opencv/cvat/pull/5521>) - Fixed vulnerability with social authentication (<https://github.com/opencv/cvat/pull/5521>)

@ -319,7 +319,7 @@ class CVAT_API_V2:
def make_client( def make_client(
host: str, *, port: Optional[int] = None, credentials: Optional[Tuple[int, int]] = None host: str, *, port: Optional[int] = None, credentials: Optional[Tuple[str, str]] = None
) -> Client: ) -> Client:
url = host.rstrip("/") url = host.rstrip("/")
if port: if port:

Loading…
Cancel
Save