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

RFE: use zoneinfo instead of pytz #410

Open
kloczek opened this issue May 30, 2024 · 0 comments
Open

RFE: use zoneinfo instead of pytz #410

kloczek opened this issue May 30, 2024 · 0 comments

Comments

@kloczek
Copy link

kloczek commented May 30, 2024

Switch to standard zoneinfo module.
Below may help pydantic/pydantic-core@fd262933

[tkloczko@pers-jacek bravado-core-6.6.1]$ grep -r pytz
bravado_core/formatter.py:import pytz
bravado_core/formatter.py:        to_wire=lambda dt: (dt if dt.tzinfo else pytz.utc.localize(dt)).isoformat(),  # type: ignore
tests/formatter/to_wire_test.py:from pytz import timezone
requirements-dev.txt:types-pytz
setup.py:        "pytz",
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

No branches or pull requests

1 participant