-
Notifications
You must be signed in to change notification settings - Fork 10
Closed
Description
Hi 😃
I found an inconsistency with the AutosarVersion enum.
The docs and type annotations are using the same case as in rust, e.g. Autosar_00048 but it's actually all upper case:
autosar-data-py/src/version.rs
Line 38 in a546d05
| #[pyo3(name = "AUTOSAR_00048")] |
I thought about submitting a PR initially, but I wasn't sure how to handle this part:
autosar-data-py/src/version.rs
Lines 67 to 69 in a546d05
| fn __str__(&self) -> String { | |
| let ver: autosar_data_specification::AutosarVersion = (*self).into(); | |
| ver.to_string() |
This needs a conversion to upper case as well. Would .to_uppercase() do the trick?
Another small thing: 00053 and LATEST are missing in the type stubs.
Metadata
Metadata
Assignees
Labels
No labels