Skip to content

Commit 8bcec6f

Browse files
committed
Adapt copyright years, fix mypy errors
1 parent d2a487d commit 8bcec6f

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

sdk/basyx/aas/adapter/_generic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2025 the Eclipse BaSyx Authors
1+
# Copyright (c) 2026 the Eclipse BaSyx Authors
22
#
33
# This program and the accompanying materials are made available under the terms of the MIT License, available in
44
# the LICENSE file of this project.

sdk/basyx/aas/adapter/xml/xml_serialization.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,8 @@ def value_reference_pair_to_xml(obj: model.ValueReferencePair,
322322
et_vrp = _generate_element(tag)
323323
# TODO: value_type isn't used at all by _value_to_xml(), thus we can ignore the type here for now
324324
et_vrp.append(_generate_element(NS_AAS+"value", text=obj.value)) # type: ignore
325-
et_vrp.append(reference_to_xml(obj.value_id, NS_AAS+"valueId"))
325+
if obj.value_id is not None:
326+
et_vrp.append(reference_to_xml(obj.value_id, NS_AAS+"valueId"))
326327
return et_vrp
327328

328329

sdk/basyx/aas/model/_string_constraints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2025 the Eclipse BaSyx Authors
1+
# Copyright (c) 2026 the Eclipse BaSyx Authors
22
#
33
# This program and the accompanying materials are made available under the terms of the MIT License, available in
44
# the LICENSE file of this project.

0 commit comments

Comments
 (0)