Skip to content

Commit

Permalink
Rewrite types analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
tefra committed Apr 14, 2024
1 parent 606324a commit 6b26c61
Show file tree
Hide file tree
Showing 84 changed files with 1,990 additions and 1,945 deletions.
12 changes: 6 additions & 6 deletions autosar/models/admin_data.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from dataclasses import dataclass, field
from typing import List, Optional, Type
from typing import ForwardRef, List, Optional

from .caption import Caption
from .category_string import CategoryString
Expand Down Expand Up @@ -276,27 +276,27 @@ class Meta:
"choices": (
{
"name": "SYSC-STRING-REF",
"type": Type["BlueprintFormula.SyscStringRef"],
"type": ForwardRef("BlueprintFormula.SyscStringRef"),
"namespace": "http://autosar.org/schema/r4.0",
},
{
"name": "SYSC-REF",
"type": Type["BlueprintFormula.SyscRef"],
"type": ForwardRef("BlueprintFormula.SyscRef"),
"namespace": "http://autosar.org/schema/r4.0",
},
{
"name": "ECUC-QUERY-REF",
"type": Type["BlueprintFormula.EcucQueryRef"],
"type": ForwardRef("BlueprintFormula.EcucQueryRef"),
"namespace": "http://autosar.org/schema/r4.0",
},
{
"name": "ECUC-REF",
"type": Type["BlueprintFormula.EcucRef"],
"type": ForwardRef("BlueprintFormula.EcucRef"),
"namespace": "http://autosar.org/schema/r4.0",
},
{
"name": "VERBATIM",
"type": Type["MultiLanguageVerbatim"],
"type": ForwardRef("MultiLanguageVerbatim"),
"namespace": "http://autosar.org/schema/r4.0",
},
),
Expand Down
8 changes: 5 additions & 3 deletions autosar/models/boolean_value_variation_point.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from dataclasses import dataclass, field
from typing import List, Optional, Type
from typing import ForwardRef, List, Optional

from .binding_time_enum_simple import BindingTimeEnumSimple
from .ref import Ref
Expand Down Expand Up @@ -101,12 +101,14 @@ class Meta:
"choices": (
{
"name": "SYSC-STRING-REF",
"type": Type["BooleanValueVariationPoint.SyscStringRef"],
"type": ForwardRef(
"BooleanValueVariationPoint.SyscStringRef"
),
"namespace": "http://autosar.org/schema/r4.0",
},
{
"name": "SYSC-REF",
"type": Type["BooleanValueVariationPoint.SyscRef"],
"type": ForwardRef("BooleanValueVariationPoint.SyscRef"),
"namespace": "http://autosar.org/schema/r4.0",
},
),
Expand Down
6 changes: 3 additions & 3 deletions autosar/models/condition_by_formula.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from dataclasses import dataclass, field
from typing import List, Optional, Type
from typing import ForwardRef, List, Optional

from .binding_time_enum_simple import BindingTimeEnumSimple
from .ref import Ref
Expand Down Expand Up @@ -68,12 +68,12 @@ class Meta:
"choices": (
{
"name": "SYSC-STRING-REF",
"type": Type["ConditionByFormula.SyscStringRef"],
"type": ForwardRef("ConditionByFormula.SyscStringRef"),
"namespace": "http://autosar.org/schema/r4.0",
},
{
"name": "SYSC-REF",
"type": Type["ConditionByFormula.SyscRef"],
"type": ForwardRef("ConditionByFormula.SyscRef"),
"namespace": "http://autosar.org/schema/r4.0",
},
),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from dataclasses import dataclass, field
from typing import List, Optional, Type
from typing import ForwardRef, List, Optional

from .binding_time_enum_simple import BindingTimeEnumSimple
from .ref import Ref
Expand Down Expand Up @@ -119,16 +119,16 @@ class Meta:
"choices": (
{
"name": "SYSC-STRING-REF",
"type": Type[
"type": ForwardRef(
"DiagnosticDebounceBehaviorEnumValueVariationPoint.SyscStringRef"
],
),
"namespace": "http://autosar.org/schema/r4.0",
},
{
"name": "SYSC-REF",
"type": Type[
"type": ForwardRef(
"DiagnosticDebounceBehaviorEnumValueVariationPoint.SyscRef"
],
),
"namespace": "http://autosar.org/schema/r4.0",
},
),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from dataclasses import dataclass, field
from typing import List, Optional, Type
from typing import ForwardRef, List, Optional

from .binding_time_enum_simple import BindingTimeEnumSimple
from .ref import Ref
Expand Down Expand Up @@ -119,16 +119,16 @@ class Meta:
"choices": (
{
"name": "SYSC-STRING-REF",
"type": Type[
"type": ForwardRef(
"DiagnosticIndicatorTypeEnumValueVariationPoint.SyscStringRef"
],
),
"namespace": "http://autosar.org/schema/r4.0",
},
{
"name": "SYSC-REF",
"type": Type[
"type": ForwardRef(
"DiagnosticIndicatorTypeEnumValueVariationPoint.SyscRef"
],
),
"namespace": "http://autosar.org/schema/r4.0",
},
),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from dataclasses import dataclass, field
from typing import List, Optional, Type
from typing import ForwardRef, List, Optional

from .binding_time_enum_simple import BindingTimeEnumSimple
from .ref import Ref
Expand Down Expand Up @@ -119,16 +119,16 @@ class Meta:
"choices": (
{
"name": "SYSC-STRING-REF",
"type": Type[
"type": ForwardRef(
"DiagnosticTestResultUpdateEnumValueVariationPoint.SyscStringRef"
],
),
"namespace": "http://autosar.org/schema/r4.0",
},
{
"name": "SYSC-REF",
"type": Type[
"type": ForwardRef(
"DiagnosticTestResultUpdateEnumValueVariationPoint.SyscRef"
],
),
"namespace": "http://autosar.org/schema/r4.0",
},
),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from dataclasses import dataclass, field
from typing import List, Optional, Type
from typing import ForwardRef, List, Optional

from .binding_time_enum_simple import BindingTimeEnumSimple
from .ref import Ref
Expand Down Expand Up @@ -119,16 +119,16 @@ class Meta:
"choices": (
{
"name": "SYSC-STRING-REF",
"type": Type[
"type": ForwardRef(
"DiagnosticWwhObdDtcClassEnumValueVariationPoint.SyscStringRef"
],
),
"namespace": "http://autosar.org/schema/r4.0",
},
{
"name": "SYSC-REF",
"type": Type[
"type": ForwardRef(
"DiagnosticWwhObdDtcClassEnumValueVariationPoint.SyscRef"
],
),
"namespace": "http://autosar.org/schema/r4.0",
},
),
Expand Down
8 changes: 5 additions & 3 deletions autosar/models/ecuc_condition_formula.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from dataclasses import dataclass, field
from typing import List, Optional, Type
from typing import ForwardRef, List, Optional

from .ecuc_query_subtypes_enum import EcucQuerySubtypesEnum
from .ref import Ref
Expand Down Expand Up @@ -54,12 +54,14 @@ class Meta:
"choices": (
{
"name": "ECUC-QUERY-REF",
"type": Type["EcucConditionFormula.EcucQueryRef"],
"type": ForwardRef("EcucConditionFormula.EcucQueryRef"),
"namespace": "http://autosar.org/schema/r4.0",
},
{
"name": "ECUC-QUERY-STRING-REF",
"type": Type["EcucConditionFormula.EcucQueryStringRef"],
"type": ForwardRef(
"EcucConditionFormula.EcucQueryStringRef"
),
"namespace": "http://autosar.org/schema/r4.0",
},
),
Expand Down
10 changes: 5 additions & 5 deletions autosar/models/ecuc_parameter_derivation_formula.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from dataclasses import dataclass, field
from typing import List, Optional, Type
from typing import ForwardRef, List, Optional

from .ecuc_query_subtypes_enum import EcucQuerySubtypesEnum
from .ref import Ref
Expand Down Expand Up @@ -53,16 +53,16 @@ class Meta:
"choices": (
{
"name": "ECUC-QUERY-REF",
"type": Type[
"type": ForwardRef(
"EcucParameterDerivationFormula.EcucQueryRef"
],
),
"namespace": "http://autosar.org/schema/r4.0",
},
{
"name": "ECUC-QUERY-STRING-REF",
"type": Type[
"type": ForwardRef(
"EcucParameterDerivationFormula.EcucQueryStringRef"
],
),
"namespace": "http://autosar.org/schema/r4.0",
},
),
Expand Down
10 changes: 5 additions & 5 deletions autosar/models/ecuc_query_expression.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from dataclasses import dataclass, field
from typing import List, Optional, Type
from typing import ForwardRef, List, Optional

from .ecuc_definition_element_subtypes_enum import (
EcucDefinitionElementSubtypesEnum,
Expand Down Expand Up @@ -57,16 +57,16 @@ class Meta:
"choices": (
{
"name": "CONFIG-ELEMENT-DEF-GLOBAL-REF",
"type": Type[
"type": ForwardRef(
"EcucQueryExpression.ConfigElementDefGlobalRef"
],
),
"namespace": "http://autosar.org/schema/r4.0",
},
{
"name": "CONFIG-ELEMENT-DEF-LOCAL-REF",
"type": Type[
"type": ForwardRef(
"EcucQueryExpression.ConfigElementDefLocalRef"
],
),
"namespace": "http://autosar.org/schema/r4.0",
},
),
Expand Down
6 changes: 3 additions & 3 deletions autosar/models/emphasis_text.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from dataclasses import dataclass, field
from typing import List, Optional, Type
from typing import ForwardRef, List, Optional

from .e_enum_font_simple import EEnumFontSimple
from .e_enum_simple import EEnumSimple
Expand Down Expand Up @@ -84,12 +84,12 @@ class Meta:
"choices": (
{
"name": "SUB",
"type": Type["EmphasisText.Sub"],
"type": ForwardRef("EmphasisText.Sub"),
"namespace": "http://autosar.org/schema/r4.0",
},
{
"name": "SUP",
"type": Type["EmphasisText.Sup"],
"type": ForwardRef("EmphasisText.Sup"),
"namespace": "http://autosar.org/schema/r4.0",
},
{
Expand Down
8 changes: 5 additions & 3 deletions autosar/models/float_value_variation_point.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from dataclasses import dataclass, field
from typing import List, Optional, Type
from typing import ForwardRef, List, Optional

from .binding_time_enum_simple import BindingTimeEnumSimple
from .ref import Ref
Expand Down Expand Up @@ -101,12 +101,14 @@ class Meta:
"choices": (
{
"name": "SYSC-STRING-REF",
"type": Type["FloatValueVariationPoint.SyscStringRef"],
"type": ForwardRef(
"FloatValueVariationPoint.SyscStringRef"
),
"namespace": "http://autosar.org/schema/r4.0",
},
{
"name": "SYSC-REF",
"type": Type["FloatValueVariationPoint.SyscRef"],
"type": ForwardRef("FloatValueVariationPoint.SyscRef"),
"namespace": "http://autosar.org/schema/r4.0",
},
),
Expand Down
10 changes: 5 additions & 5 deletions autosar/models/fm_condition_by_features_and_attributes.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from dataclasses import dataclass, field
from typing import List, Optional, Type
from typing import ForwardRef, List, Optional

from .fm_attribute_def_subtypes_enum import FmAttributeDefSubtypesEnum
from .fm_feature_subtypes_enum import FmFeatureSubtypesEnum
Expand Down Expand Up @@ -55,16 +55,16 @@ class Meta:
"choices": (
{
"name": "ATTRIBUTE-REF",
"type": Type[
"type": ForwardRef(
"FmConditionByFeaturesAndAttributes.AttributeRef"
],
),
"namespace": "http://autosar.org/schema/r4.0",
},
{
"name": "FEATURE-REF",
"type": Type[
"type": ForwardRef(
"FmConditionByFeaturesAndAttributes.FeatureRef"
],
),
"namespace": "http://autosar.org/schema/r4.0",
},
),
Expand Down
14 changes: 7 additions & 7 deletions autosar/models/fm_condition_by_features_and_sw_systemconsts.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from dataclasses import dataclass, field
from typing import List, Optional, Type
from typing import ForwardRef, List, Optional

from .fm_feature_subtypes_enum import FmFeatureSubtypesEnum
from .ref import Ref
Expand Down Expand Up @@ -54,23 +54,23 @@ class Meta:
"choices": (
{
"name": "SYSC-STRING-REF",
"type": Type[
"type": ForwardRef(
"FmConditionByFeaturesAndSwSystemconsts.SyscStringRef"
],
),
"namespace": "http://autosar.org/schema/r4.0",
},
{
"name": "SYSC-REF",
"type": Type[
"type": ForwardRef(
"FmConditionByFeaturesAndSwSystemconsts.SyscRef"
],
),
"namespace": "http://autosar.org/schema/r4.0",
},
{
"name": "FEATURE-REF",
"type": Type[
"type": ForwardRef(
"FmConditionByFeaturesAndSwSystemconsts.FeatureRef"
],
),
"namespace": "http://autosar.org/schema/r4.0",
},
),
Expand Down
Loading

0 comments on commit 6b26c61

Please sign in to comment.