Skip to content

Conversation

@emaheuxPEREN
Copy link

  • default_types parameter is now recursively used (+ add new ZERO_TAG_INT8 type for convenience) so that using default_types={0: types.INT8, 12: types.ZERO_TAG_INT8} enable to decode byte as int8
  • Bump dependencies, especially Pydantic v2 (keeping v1 API) [Python >= 3.9 required for newest black]
  • fix typing issues (mypy & pyright)
  • minor improvement on CLI

@emaheuxPEREN emaheuxPEREN force-pushed the rec_default_types_and_pydantic_v2 branch from 4209bbb to 51e29b4 Compare August 4, 2025 13:28
@yanyongyu
Copy link
Owner

Hi @emaheuxPEREN thanks for you contribution! This library is has not been maintained for a long time. It may be hard to make such big change in one PR. Could you please separate into multi PRs? I can also review the changes more easily.

About the first feature, ZERO_TAG actually has no data. INT8 may confuse users. What about INT?

About moving to pydantic v2, i think it's not enough to just replace the import with pydantic.v1. This is a big change. I will rewrite the pydantic related logic when i have free time. also, PR welcome.

About typing issues, i have migrated my projects into uv + ruff + pyright (with standard mode). I will update the project configures.

…g issues + default_types parameter is now recursively used + minor improvement on CLI
…d class (deriving from int) to spot them easily
@emaheuxPEREN emaheuxPEREN force-pushed the rec_default_types_and_pydantic_v2 branch from dd3436f to cbf3b2e Compare August 4, 2025 16:50
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