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

fix u style unicode strings in python #110

Merged
merged 2 commits into from
May 31, 2024
Merged

Conversation

samuelcolvin
Copy link
Member

Copy link

codspeed-hq bot commented May 29, 2024

CodSpeed Performance Report

Merging #110 will not alter performance

Comparing string-decoding-error (eb0e123) with main (366d16a)

Summary

✅ 73 untouched benchmarks

Copy link

codecov bot commented May 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

Copy link
Collaborator

@davidhewitt davidhewitt left a comment

Choose a reason for hiding this comment

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

Subject to one nit

crates/jiter/tests/main.rs Outdated Show resolved Hide resolved
@samuelcolvin samuelcolvin merged commit fc5a710 into main May 31, 2024
21 checks passed
@samuelcolvin samuelcolvin deleted the string-decoding-error branch May 31, 2024 12:29
renovate bot added a commit to spiraldb/ziggy-pydust that referenced this pull request Jun 3, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [pydantic](https://togithub.com/pydantic/pydantic)
([changelog](https://docs.pydantic.dev/latest/changelog/)) | `2.7.1` ->
`2.7.3` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/pydantic/2.7.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/pydantic/2.7.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/pydantic/2.7.1/2.7.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/pydantic/2.7.1/2.7.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>pydantic/pydantic (pydantic)</summary>

###
[`v2.7.3`](https://togithub.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v273-2024-06-03)

[Compare
Source](https://togithub.com/pydantic/pydantic/compare/v2.7.2...v2.7.3)

[GitHub
release](https://togithub.com/pydantic/pydantic/releases/tag/v2.7.3)

##### What's Changed

##### Packaging

- Bump `pydantic-core` to `v2.18.4` by
[@&#8203;sydney-runkle](https://togithub.com/sydney-runkle) in
[#&#8203;9550](https://togithub.com/pydantic/pydantic/pull/9550)

##### Fixes

- Fix u style unicode strings in python
[@&#8203;samuelcolvin](https://togithub.com/samuelcolvin) in
[pydantic/jiter#110](https://togithub.com/pydantic/jiter/pull/110)

###
[`v2.7.2`](https://togithub.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v272-2024-05-28)

[Compare
Source](https://togithub.com/pydantic/pydantic/compare/v2.7.1...v2.7.2)

[GitHub
release](https://togithub.com/pydantic/pydantic/releases/tag/v2.7.2)

##### What's Changed

##### Packaging

- Bump `pydantic-core` to `v2.18.3` by
[@&#8203;sydney-runkle](https://togithub.com/sydney-runkle) in
[#&#8203;9515](https://togithub.com/pydantic/pydantic/pull/9515)

##### Fixes

- Replace `__spec__.parent` with `__package__` by
[@&#8203;hramezani](https://togithub.com/hramezani) in
[#&#8203;9331](https://togithub.com/pydantic/pydantic/pull/9331)
- Fix validation of `int`s with leading unary minus by
[@&#8203;RajatRajdeep](https://togithub.com/RajatRajdeep) in
[pydantic/pydantic-core#1291](https://togithub.com/pydantic/pydantic-core/pull/1291)
- Fix `str` subclass validation for enums by
[@&#8203;sydney-runkle](https://togithub.com/sydney-runkle) in
\[[pydantic/pydantic-core#1273](https://togithub.com/pydantic/pydantic-core/issues/1273)][https://github.com/pydantic/pydantic-core/pull/1273](https://togithub.com/pydantic/pydantic-core/pull/1273)
- Support `BigInt`s in `Literal`s and `Enum`s by
[@&#8203;samuelcolvin](https://togithub.com/samuelcolvin) in
\[[pydantic/pydantic-core#1297](https://togithub.com/pydantic/pydantic-core/issues/1297)][https://github.com/pydantic/pydantic-core/pull/1297](https://togithub.com/pydantic/pydantic-core/pull/1297)
- Fix: uuid - allow `str` subclass as input by
[@&#8203;davidhewitt](https://togithub.com/davidhewitt) in
\[[pydantic/pydantic-core#1296](https://togithub.com/pydantic/pydantic-core/issues/1296)][https://github.com/pydantic/pydantic-core/pull/1296](https://togithub.com/pydantic/pydantic-core/pull/1296)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/spiraldb/ziggy-pydust).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNzcuOCIsInVwZGF0ZWRJblZlciI6IjM3LjM3Ny44IiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
adamnolte pushed a commit to autoblocksai/autoblocks-examples that referenced this pull request Jun 4, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[@types/node](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node)
([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node))
| [`20.12.12` ->
`20.14.1`](https://renovatebot.com/diffs/npm/@types%2fnode/20.12.12/20.14.1)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fnode/20.14.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fnode/20.14.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fnode/20.12.12/20.14.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fnode/20.12.12/20.14.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [ai](https://sdk.vercel.ai/docs)
([source](https://togithub.com/vercel/ai)) | [`3.1.17` ->
`3.1.23`](https://renovatebot.com/diffs/npm/ai/3.1.17/3.1.23) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/ai/3.1.23?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/ai/3.1.23?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/ai/3.1.17/3.1.23?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/ai/3.1.17/3.1.23?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [openai](https://togithub.com/openai/openai-python) | `1.30.4` ->
`1.31.0` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/openai/1.31.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/openai/1.31.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/openai/1.30.4/1.31.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/openai/1.30.4/1.31.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [openai](https://togithub.com/openai/openai-node) | [`4.47.2` ->
`4.47.3`](https://renovatebot.com/diffs/npm/openai/4.47.2/4.47.3) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/openai/4.47.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/openai/4.47.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/openai/4.47.2/4.47.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/openai/4.47.2/4.47.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [pydantic](https://togithub.com/pydantic/pydantic)
([changelog](https://docs.pydantic.dev/latest/changelog/)) | `2.7.2` ->
`2.7.3` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/pydantic/2.7.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/pydantic/2.7.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/pydantic/2.7.2/2.7.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/pydantic/2.7.2/2.7.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [tsx](https://togithub.com/privatenumber/tsx) | [`4.11.0` ->
`4.11.2`](https://renovatebot.com/diffs/npm/tsx/4.11.0/4.11.2) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/tsx/4.11.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/tsx/4.11.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/tsx/4.11.0/4.11.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/tsx/4.11.0/4.11.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>vercel/ai (ai)</summary>

### [`v3.1.23`](https://togithub.com/vercel/ai/releases/tag/ai%403.1.23)

[Compare
Source](https://togithub.com/vercel/ai/compare/[email protected]@3.1.23)

##### Patch Changes

- [`c03cafe`](https://togithub.com/vercel/ai/commit/c03cafe6): chore
(core, ui): rename maxAutomaticRoundtrips to maxToolRoundtrips

### [`v3.1.22`](https://togithub.com/vercel/ai/releases/tag/ai%403.1.22)

[Compare
Source](https://togithub.com/vercel/ai/compare/[email protected]@3.1.22)

##### Patch Changes

- [`14bb869`](https://togithub.com/vercel/ai/commit/14bb8694): chore
(ui): move maxAutomaticRoundtrips and addToolResult out of experimental

### [`v3.1.21`](https://togithub.com/vercel/ai/releases/tag/ai%403.1.21)

[Compare
Source](https://togithub.com/vercel/ai/compare/[email protected]@3.1.21)

##### Patch Changes

- [`213f241`](https://togithub.com/vercel/ai/commit/213f2411): fix
(core,streams): support ResponseInit variants
- [`09698bc`](https://togithub.com/vercel/ai/commit/09698bca): chore
(streams): deprecate streaming helpers that have a provider replacement

### [`v3.1.20`](https://togithub.com/vercel/ai/releases/tag/ai%403.1.20)

[Compare
Source](https://togithub.com/vercel/ai/compare/[email protected]@3.1.20)

##### Patch Changes

- [`0e1da47`](https://togithub.com/vercel/ai/commit/0e1da476): feat
(core): add maxAutomaticRoundtrips setting to generateText

### [`v3.1.19`](https://togithub.com/vercel/ai/releases/tag/ai%403.1.19)

[Compare
Source](https://togithub.com/vercel/ai/compare/[email protected]@3.1.19)

##### Patch Changes

- [`9882d24`](https://togithub.com/vercel/ai/commit/9882d24b): fix
(ui/svelte): send data to server
- [`131bbd3`](https://togithub.com/vercel/ai/commit/131bbd3e): fix (ui):
remove console.log statements

### [`v3.1.18`](https://togithub.com/vercel/ai/releases/tag/ai%403.1.18)

[Compare
Source](https://togithub.com/vercel/ai/compare/[email protected]@3.1.18)

##### Patch Changes

- [`f9dee8a`](https://togithub.com/vercel/ai/commit/f9dee8ac):
fix(ai/rsc): Fix types for createStreamableValue and createStreamableUI
- [`1c0ebf8`](https://togithub.com/vercel/ai/commit/1c0ebf8e): feat
(core): add responseMessages to generateText result

</details>

<details>
<summary>openai/openai-python (openai)</summary>

###
[`v1.31.0`](https://togithub.com/openai/openai-python/blob/HEAD/CHANGELOG.md#1310-2024-06-03)

[Compare
Source](https://togithub.com/openai/openai-python/compare/v1.30.5...v1.31.0)

Full Changelog:
[v1.30.5...v1.31.0](https://togithub.com/openai/openai-python/compare/v1.30.5...v1.31.0)

##### Features

- **api:** updates
([#&#8203;1461](https://togithub.com/openai/openai-python/issues/1461))
([0d7cc5e](https://togithub.com/openai/openai-python/commit/0d7cc5e48c565fe10ee6e8ca4d050175eb543bcb))

##### Chores

- fix lint
([1886dd4](https://togithub.com/openai/openai-python/commit/1886dd4c98d7a7b3a679bff739cb38badf5ae96c))

###
[`v1.30.5`](https://togithub.com/openai/openai-python/blob/HEAD/CHANGELOG.md#1305-2024-05-29)

[Compare
Source](https://togithub.com/openai/openai-python/compare/v1.30.4...v1.30.5)

Full Changelog:
[v1.30.4...v1.30.5](https://togithub.com/openai/openai-python/compare/v1.30.4...v1.30.5)

##### Chores

- **internal:** fix lint issue
([35a1e80](https://togithub.com/openai/openai-python/commit/35a1e806891c34d5cc13ac8341751e5b15b52319))

</details>

<details>
<summary>openai/openai-node (openai)</summary>

###
[`v4.47.3`](https://togithub.com/openai/openai-node/blob/HEAD/CHANGELOG.md#4473-2024-05-31)

[Compare
Source](https://togithub.com/openai/openai-node/compare/v4.47.2...v4.47.3)

Full Changelog:
[v4.47.2...v4.47.3](https://togithub.com/openai/openai-node/compare/v4.47.2...v4.47.3)

##### Bug Fixes

- allow git imports for pnpm
([#&#8203;873](https://togithub.com/openai/openai-node/issues/873))
([9da9809](https://togithub.com/openai/openai-node/commit/9da98090e80cbe988a3d695e4c9b57439080ec3e))

##### Documentation

- **azure:** update example and readme to use Entra ID
([#&#8203;857](https://togithub.com/openai/openai-node/issues/857))
([722eff1](https://togithub.com/openai/openai-node/commit/722eff1a7aeaa2ce3c40301709db61258c9afa16))

</details>

<details>
<summary>pydantic/pydantic (pydantic)</summary>

###
[`v2.7.3`](https://togithub.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v273-2024-06-03)

[Compare
Source](https://togithub.com/pydantic/pydantic/compare/v2.7.2...v2.7.3)

[GitHub
release](https://togithub.com/pydantic/pydantic/releases/tag/v2.7.3)

##### What's Changed

##### Packaging

- Bump `pydantic-core` to `v2.18.4` by
[@&#8203;sydney-runkle](https://togithub.com/sydney-runkle) in
[#&#8203;9550](https://togithub.com/pydantic/pydantic/pull/9550)

##### Fixes

- Fix u style unicode strings in python
[@&#8203;samuelcolvin](https://togithub.com/samuelcolvin) in
[pydantic/jiter#110](https://togithub.com/pydantic/jiter/pull/110)

</details>

<details>
<summary>privatenumber/tsx (tsx)</summary>

###
[`v4.11.2`](https://togithub.com/privatenumber/tsx/compare/v4.11.1...aa2b639a9bac8ae28a46b847013fda7f5cd4466b)

[Compare
Source](https://togithub.com/privatenumber/tsx/compare/v4.11.1...v4.11.2)

###
[`v4.11.1`](https://togithub.com/privatenumber/tsx/compare/v4.11.0...5e701051c4eb639bfd204c805310777789907a55)

[Compare
Source](https://togithub.com/privatenumber/tsx/compare/v4.11.0...v4.11.1)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday" in timezone
America/Chicago, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/autoblocksai/autoblocks-examples).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNzcuOCIsInVwZGF0ZWRJblZlciI6IjM3LjM3Ny44IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull request Jun 7, 2024
https://build.opensuse.org/request/show/1179027
by user dirkmueller + anag+factory
- update to 2.7.3:
  * Bump `pydantic-core` to `v2.18.4`
  * Fix u style unicode strings in python @samuelcolvin in
    pydantic/jiter#110
  * Replace `__spec__.parent` with `__package__`
  * Fix validation of `int`s with leading unary minus
  * Fix `str` subclass validation for enums
  * Support `BigInt`s in `Literal`s and `Enum`s
  * Fix: uuid - allow `str` subclass as input
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.

Json field display garbled characters when ensure_ascii=True
2 participants