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

Add Support for Chrono StubTypes #77

Open
ThatOneShortGuy opened this issue Sep 6, 2024 · 1 comment
Open

Add Support for Chrono StubTypes #77

ThatOneShortGuy opened this issue Sep 6, 2024 · 1 comment

Comments

@ThatOneShortGuy
Copy link

It seems that the chrono feature from pyo3 isn't supported for the stub gen.

344 |         start_date: NaiveDate,
    |                     ^^^^^^^^^ the trait `PyStubType` is not implemented for `NaiveDate`
    |
    = help: the following other types implement trait `PyStubType`:
              &T
              &str
              ()
              (T1, T2)
              (T1, T2, T3)
              (T1, T2, T3, T4)
              (T1, T2, T3, T4, T5)
              (T1, T2, T3, T4, T5, T6)
            and 57 others

I think it could be added with a feature flag, so it maintains the ergonomics of pyo3.

@ThatOneShortGuy
Copy link
Author

I think I've got it figured out, and it works well on my project. I'll leave a PR.

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