-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove the
ProgCodeSyntax
enum class (#199)
* remove the `ProgCodeSyntax` enum class instead, make this a string because the SYNTAX subtag of SINGLE-ECU-JOB is specified to be a plain string in the ODX specification. It seems like we wanted to be more strict on our own files and tried to constrain the possible values for this. This was implemented using a string literal (which is like a type-checking only enum, i.e., it does not check if the value specified is valid if can only be determined at runtime). After changing this to an `Enum` class in #172, it got some (incorrect) teeth which bit users that used non-Java single ECU jobs. Signed-off-by: Andreas Lauser <[email protected]> Signed-off-by: Katja Köhler <[email protected]> * re-add type annotation in `TextTableCompuMethod.convert_physical_to_internal()` this is for the benefit of IDEs. Note that mypy now produces a (non-fatal) warning about this. this was requested by [at]kayoub5. Thanks for the nudge. Signed-off-by: Andreas Lauser <[email protected]> Signed-off-by: Katja Köhler <[email protected]> --------- Signed-off-by: Andreas Lauser <[email protected]> Signed-off-by: Katja Köhler <[email protected]>
- Loading branch information
Showing
4 changed files
with
8 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters