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

add one missing assignment, bump version #93

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

granawkins
Copy link
Member

No description provided.

Copy link
Contributor

@mentatai mentatai bot left a comment

Choose a reason for hiding this comment

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

This pull request includes two changes:

  1. A version bump in pyproject.toml from 0.3.16 to 0.3.17.
  2. An improvement to the type hinting in spice.py, adding a generic type parameter to RetryStrategy.

The version bump seems appropriate given the type hinting improvement. The change to the RetryStrategy type hint is a good enhancement for type safety and consistency. Overall, these changes look good and should be ready to merge after confirming the intentionality of the version bump.

Thanks for using MentatBot. Give comments a 👍 or 👎 to help me improve!

@@ -12,7 +12,7 @@ packages=["spice"]

[project]
name = "spiceai"
version = "0.3.16"
version = "0.3.17"
Copy link
Contributor

Choose a reason for hiding this comment

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

Version bump from 0.3.16 to 0.3.17. Make sure this change is intentional and corresponds to the changes made in this PR.

@@ -390,7 +390,7 @@ async def get_response(
converter: Callable[[str], T] = string_identity,
streaming_callback: Optional[Callable[[str], None]] = None,
retries: int = 0,
retry_strategy: Optional[RetryStrategy] = None,
retry_strategy: Optional[RetryStrategy[T]] = None,
Copy link
Contributor

Choose a reason for hiding this comment

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

Good addition of the generic type parameter T to RetryStrategy. This improves type safety and makes the code more consistent with the converter parameter.

@granawkins granawkins merged commit e625c45 into main Jul 16, 2024
2 checks passed
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