Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

Hide SnapshotValue in Snapshot's API by returning Union[bytes, str] instead, while keeping SnapshotValue in the internal implementation.

Link to Devin run: https://app.devin.ai/sessions/c9899ce0f61e45f5837ef22b3832e481

Change Snapshot's API to return Union[bytes, str] instead of SnapshotValue while keeping SnapshotValue in the internal implementation.

Co-Authored-By: ned.twigg@diffplug.com <ned.twigg@diffplug.com>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR
  • Look at CI failures and help fix them

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Add "(aside)" to your comment to have me ignore it.

devin-ai-integration bot and others added 5 commits December 12, 2024 08:43
Co-Authored-By: ned.twigg@diffplug.com <ned.twigg@diffplug.com>
Co-Authored-By: ned.twigg@diffplug.com <ned.twigg@diffplug.com>
Co-Authored-By: ned.twigg@diffplug.com <ned.twigg@diffplug.com>
Co-Authored-By: ned.twigg@diffplug.com <ned.twigg@diffplug.com>
Co-Authored-By: ned.twigg@diffplug.com <ned.twigg@diffplug.com>
@nedtwigg
Copy link
Member

This was interesting, and I think it is much more pythonic, but the Snapshot is almost never exposed to users anyway, so I think the added internal complexity it adds is not worth it. Great PR though, good job Devin!

@nedtwigg nedtwigg closed this Dec 12, 2024
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