Skip to content

(#164) Serde improvements, open_binary -> files changes #165

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

vjanelle
Copy link
Contributor

Makes it when you use object conditionals that serde/deser works, as opposed to using the raw dict literals.

Update API usage for picked data to use the files() api.

@redruin1
Copy link
Owner

The open_binary to files change seems like a good idea, although after doing a bit of research it seems that pkg_resources itself might be being deprecated in favor of importlib.resources in Python > 3.12. Would it be a good idea to use that instead?

For the other changes, does the fix described here take care of your expected behavior? From what I've gleaned from the commits it seems Pydantic should take care of most if this stuff on the backend when the types are properly annotated, unless there's some additional behavior being added here that I'm not seeing.

@vjanelle
Copy link
Contributor Author

Importlib.resources was added in 3.7, so should be fine?

Is there a minimum python version this project is targeting?

@redruin1
Copy link
Owner

Yes, sounds good. Since Draftsman 2.0 we depend on type annotations, so Python 3.7 is our minimum version going forward.

@vjanelle
Copy link
Contributor Author

vjanelle commented May 12, 2025 via email

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