Skip to content

Conversation

@recursiveAF
Copy link
Owner

…Schema` class (pydantic#10846)

Change Summary

Related issue number

Checklist

  • The pull request title is a good summary of the changes - it will be used in the changelog
  • Unit tests for the changes exist
  • Tests pass on CI
  • Documentation reflects the changes where applicable
  • My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

…Schema` class (pydantic#10846)

Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
if path_type is bytes:
if isinstance(input_value, bytes):
try:
input_value = input_value.decode()
Copy link

Choose a reason for hiding this comment

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

Missing error handling for the case where bytes decoding fails but the input is not bytes. The outer if/else checks for bytes type but still wraps a decoding attempt in a try/except, which won't get reached for non-bytes input.


💬 Reply with /praise to tell me that this comment was useful.

Is this comment irrelevant to your project? Reply with /ignore to no longer receive comments like this in the future.

Copy link
Owner Author

Choose a reason for hiding this comment

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

:( saj, you were wrong

@recurseml
Copy link

recurseml bot commented Feb 22, 2025

😱 Found 1 issue. Time to roll up your sleeves! 😱

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.

3 participants