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

New TypeInfo struct and PyStubType trait #37

Merged
merged 19 commits into from
Aug 14, 2024
Merged

New TypeInfo struct and PyStubType trait #37

merged 19 commits into from
Aug 14, 2024

Conversation

termoshtt
Copy link
Collaborator

@termoshtt termoshtt commented Aug 13, 2024

  • Resolve New trait for creating stub file without pyo3/experimental-inspect feature #16, remove the dependency to "PyO3/experimental-inspect"
  • New TypeInfo is introduced which replace pyo3::inspect::types::TypeInfo. It is generated by PyStubType traits.
  • Impelement PyStubType to
    • builtins (u32, i32, String, ...)
    • Collections (Vec<T>, HashMap<K, V>, ...)
    • PyO3 primitives (PyAny, PyList, PyDict)
  • Helper for implementing PyStubType for user struct, i.e. #[derive(PyStubType)] will be next PR.

@termoshtt termoshtt self-assigned this Aug 13, 2024
@termoshtt termoshtt changed the title New TypeInfo struct and PyStubType trait New TypeInfo struct and PyStubType trait Aug 13, 2024
@termoshtt termoshtt marked this pull request as ready for review August 14, 2024 05:16
@termoshtt termoshtt merged commit adc4c54 into main Aug 14, 2024
10 checks passed
@termoshtt termoshtt deleted the stub-type-trait branch August 14, 2024 05:17
termoshtt added a commit that referenced this pull request Aug 22, 2024
- Cleanup and simplify `impl ToToken for ArgInfo` which based on
`pyo3/experimental-inspect` feature as before #37
- This can yield breaking changes. Bump up to 0.6.0.
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.

New trait for creating stub file without pyo3/experimental-inspect feature
1 participant