Skip to content
New issue

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

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

Already on GitHub? # to your account

fix: removed default max length for serialize function #6674

Merged
merged 3 commits into from
Feb 17, 2025

Conversation

lucaseduoli
Copy link
Collaborator

This pull request includes several changes to the src/backend/base/langflow/serialization/serialization.py file to improve code readability by reformatting function definitions and long lines. The most important changes include reformatting function signatures and improving the readability of conditional statements.

Improvements to code readability:

  • Reformatted function definitions to place parameters on separate lines for better readability. (_serialize_document, _serialize_pydantic, _serialize_pydantic_v1, _serialize_list_tuple, _serialize_dataframe, _serialize_series, _serialize_numpy_type, _serialize_dispatcher, serialize, serialize_or_str) [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]
  • Improved readability of conditional statements by breaking long lines into multiple lines. (_truncate_value, _serialize_dispatcher, serialize) [1] [2] [3] [4]

@lucaseduoli lucaseduoli self-assigned this Feb 17, 2025
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Feb 17, 2025
@github-actions github-actions bot added the bug Something isn't working label Feb 17, 2025
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Feb 17, 2025
@github-actions github-actions bot added bug Something isn't working and removed bug Something isn't working labels Feb 17, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Feb 17, 2025
@github-actions github-actions bot added bug Something isn't working and removed bug Something isn't working labels Feb 17, 2025
@ogabrielluiz ogabrielluiz added this pull request to the merge queue Feb 17, 2025
Merged via the queue into main with commit 4d79337 Feb 17, 2025
33 of 34 checks passed
@ogabrielluiz ogabrielluiz deleted the fix/serialize_defaults branch February 17, 2025 22:05
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants