Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Jan 21, 2023

Conversation

Sothatsit
Copy link
Contributor

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).

Checklist

  • I submit my changes into the develop branch
  • I have added a description of my changes into CHANGELOG file
    - [ ] I have updated the documentation accordingly
    - [ ] I have added tests to cover my changes
    - [ ] I have linked related issues (read github docs)
    - [ ] I have increased versions of npm packages if it is necessary (cvat-canvas,
    cvat-core, cvat-data and cvat-ui)

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.

The type of the credentials parameter was Optional[Tuple[int, int]], but it should be Optional[Tuple[str, str]].
Copy link
Contributor

@nmanovic nmanovic left a comment

Choose a reason for hiding this comment

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

@Sothatsit , thanks your contribution!

@nmanovic nmanovic merged commit a9476cb into cvat-ai:develop Jan 21, 2023
sizov-kirill pushed a commit that referenced this pull request Jan 30, 2023
…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).
mikhail-treskin pushed a commit to retailnext/cvat that referenced this pull request Jul 1, 2023
…vat-ai#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).
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.

None yet

3 participants