Skip to content

Conversation

@pppyb
Copy link
Owner

@pppyb pppyb commented Mar 19, 2025

This PR fixes the parameter order in the CodeSearchObservation dataclass to comply with Python dataclass rules.

Issue Fixed

In Python dataclasses, all required parameters (without default values) must come before parameters with default values. The previous implementation had the content parameter (with a default value) after the required parameters query and results, which caused the error:

TypeError: non-default argument query follows default argument

Changes

  1. Reordered the parameters in CodeSearchObservation to ensure required parameters come first
  2. Updated all instances where CodeSearchObservation is created to use the correct parameter order
  3. Updated tests to use the correct parameter order

These changes ensure that the code search functionality works correctly and passes all tests.

@github-actions
Copy link

This PR is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Apr 19, 2025
@github-actions
Copy link

This PR was closed because it has been stalled for over 30 days with no activity.

@github-actions github-actions bot closed this Apr 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants