Skip to content

Conversation

@sydney-runkle
Copy link
Contributor

Fix #10407

@github-actions github-actions bot added the relnotes-fix Used for bugfixes. label Sep 13, 2024
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Sep 13, 2024

Deploying pydantic-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4d0f885
Status: ✅  Deploy successful!
Preview URL: https://a24fe6ab.pydantic-docs.pages.dev
Branch Preview URL: https://zoneinfo-fix.pydantic-docs.pages.dev

View logs

@codspeed-hq
Copy link

codspeed-hq bot commented Sep 13, 2024

CodSpeed Performance Report

Merging #10408 will not alter performance

Comparing zoneinfo-fix (4d0f885) with main (656481f)

Summary

✅ 49 untouched benchmarks



def test_zoneinfo_union() -> None:
ta = TypeAdapter(Union[zoneinfo.ZoneInfo, timezone], config=ConfigDict(arbitrary_types_allowed=True))
Copy link
Member

Choose a reason for hiding this comment

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

What's the reason to have arbitrary_types_allowed here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We don't support timezone 😅

@github-actions
Copy link
Contributor

Coverage report

Image Image

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  pydantic/_internal
  _generate_schema.py ImageImageImageImage
Project Total ImageImageImageImage 

This report was generated by python-coverage-comment-action

@sydney-runkle sydney-runkle merged commit 7daa2cd into main Sep 13, 2024
@sydney-runkle sydney-runkle deleted the zoneinfo-fix branch September 13, 2024 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

relnotes-fix Used for bugfixes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error when validating timezone / ZoneInfo union

4 participants