Skip to content

Commit

Permalink
Fix nullability check in AASd-129 (#273)
Browse files Browse the repository at this point in the history
We forgot to use `kind_or_default`, which is a non-nullable, and used a
`kind`, which can be `None`. The patch fixes this issue.
  • Loading branch information
mristin committed Jun 9, 2023
1 parent e365777 commit 5671db7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aas_core_meta/v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -2440,7 +2440,7 @@ def __init__(
lambda self:
not (self.submodel_elements is not None)
or (
not (self.kind != Modelling_kind.Template)
not (self.kind_or_default() != Modelling_kind.Template)
or (
all(
not (submodel_element.qualifiers is not None)
Expand Down

0 comments on commit 5671db7

Please sign in to comment.