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

added new to type stub + fixed type hinting #717

Merged
merged 4 commits into from
Aug 8, 2024

Conversation

hh-space-invader
Copy link
Contributor

@hh-space-invader hh-space-invader commented Aug 5, 2024

All Submissions:

  • Contributions should target the dev branch. Did you create your branch from dev?
  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

  1. Does your submission pass tests?
  2. Have you installed pre-commit with pip3 install pre-commit and set up hooks with pre-commit install?

Changes to Core Features:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your core changes, as applicable?
  • Have you successfully ran tests with your changes locally?

Copy link

netlify bot commented Aug 5, 2024

Deploy Preview for poetic-froyo-8baba7 ready!

Name Link
🔨 Latest commit 8fd37e0
🔍 Latest deploy log https://app.netlify.com/sites/poetic-froyo-8baba7/deploys/66b4e4ffcd512e0007c0a7e8
😎 Deploy Preview https://deploy-preview-717--poetic-froyo-8baba7.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@hh-space-invader
Copy link
Contributor Author

#696
#687

@joein
Copy link
Member

joein commented Aug 5, 2024

could you also unlock pyright dependency in pyproject.toml and update poetry.lock?

@joein
Copy link
Member

joein commented Aug 6, 2024

other than the comments, looks fine

tests/type_stub.py Outdated Show resolved Hide resolved
tests/type_stub.py Outdated Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
@joein
Copy link
Member

joein commented Aug 8, 2024

could you please regenerate poetry.lock

@@ -62,16 +62,16 @@ def get_args_subscribed(tp): # type: ignore
rest.PayloadSchemaType, rest.PayloadSchemaParams, int, grpc.PayloadIndexParams
] # type(grpc.PayloadSchemaType) == int
PointStruct: TypeAlias = rest.PointStruct
Points = Union[rest.Batch, List[Union[rest.PointStruct, grpc.PointStruct]]]
Points = Union[rest.Batch, Sequence[Union[rest.PointStruct, grpc.PointStruct]]]
Copy link
Member

Choose a reason for hiding this comment

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

LocalCollection.upsert should become Union[Sequence[models.PointStruct], models.Batch] then

@joein joein self-requested a review August 8, 2024 15:43
@joein joein merged commit 3c42c3a into qdrant:dev Aug 8, 2024
9 checks passed
joein added a commit that referenced this pull request Aug 12, 2024
* added new to type stub + fixed type hinting

* unlocked pyright + updated type_stub

* updated poetry lock

* fix: fix local collection upsert type hint

---------

Co-authored-by: George Panchuk <[email protected]>
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.

2 participants