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

enhance: add SingleInstanceMetaClass to inherit from a generic type #2176

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

csy1204
Copy link

@csy1204 csy1204 commented Jul 14, 2024

Related issue

close #2175

Description

This PR can improve code readability on IDE. It gives clear type information.

as-is to-be
image image

@sre-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: csy1204
To complete the pull request process, please assign longjiquan after the PR has been reviewed.
You can assign the PR to them by writing /assign @longjiquan in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sre-ci-robot
Copy link

Welcome @csy1204! It looks like this is your first PR to milvus-io/pymilvus 🎉

@csy1204 csy1204 changed the title feat: add SingleInstanceMetaClass to inherit from a generic type enhance: add SingleInstanceMetaClass to inherit from a generic type Jul 14, 2024
@mergify mergify bot added the needs-dco label Jul 14, 2024
Signed-off-by: csy1204 <josang1204@gmail.com>
@mergify mergify bot added dco-passed and removed needs-dco labels Jul 14, 2024
@XuanYang-cn XuanYang-cn added the PR | need to cherry-pick to 2.x This PR need to be cherry-picked to 2.x branch label Jul 22, 2024
@XuanYang-cn
Copy link
Contributor

@csy1204 Please fix the coding style

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dco-passed PR | need to cherry-pick to 2.x This PR need to be cherry-picked to 2.x branch size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Enhancement]: add generic type in metaclass
3 participants