Skip to content

AutosarVersion case is inconsistent #9

@EdVanDance

Description

@EdVanDance

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:

#[pyo3(name = "AUTOSAR_00048")]

I thought about submitting a PR initially, but I wasn't sure how to handle this part:

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions