Skip to content

Replace pydantic dataclasses#24

Merged
spwoodcock merged 4 commits into
hotosm:mainfrom
sarthak-cs:replace-pydantic-dataclasses
Dec 23, 2025
Merged

Replace pydantic dataclasses#24
spwoodcock merged 4 commits into
hotosm:mainfrom
sarthak-cs:replace-pydantic-dataclasses

Conversation

@sarthak-cs
Copy link
Copy Markdown
Contributor

This PR replaces the Pydantic models in __init__.py with Python standard library dataclasses, as suggested in Issue #23.

  • Login and Token models now use @dataclass
  • Basic type validation added in post_init to ensure values exist and are strings
  • No external dependencies (Pydantic removed)

@spwoodcock
Copy link
Copy Markdown
Member

Crazy how quick that was 😆

Thank you @sarthak-cs!

@spwoodcock spwoodcock merged commit 94fddda into hotosm:main Dec 23, 2025
1 check passed
@sarthak-cs
Copy link
Copy Markdown
Contributor Author

Happy to help! Thanks for maintaining this project. Just here to learn more with Open Source Contributions❤️

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