Skip to content

Commit

Permalink
reset changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthieuCMira committed Oct 7, 2024
1 parent 8ac7742 commit b99b0fe
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions geoh5py/groups/interpretation_section.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#
from __future__ import annotations

from typing import TYPE_CHECKING, Any
from typing import TYPE_CHECKING, Any, cast
from uuid import UUID

from pydantic import BaseModel, model_validator
Expand All @@ -28,7 +28,6 @@

if TYPE_CHECKING: # pragma: no cover
from ..objects import Curve, Slicer
from ..shared.entity import Entity

ATTRIBUTE_MAP = {
"Normal X": "normal_x",
Expand Down Expand Up @@ -405,8 +404,8 @@ def section_object_id(self, slicer: Slicer | None):
self.update_metadata({"Section object ID": None})
return

self._section_object_id = self._verify_object(slicer, "Slicer")
self._section_object_id = cast(Slicer, self._verify_object(slicer, "Slicer"))

self.add_children(slicer)
self.add_children(self._section_object_id)

self.update_metadata({"Section object ID": slicer.uid})
self.update_metadata({"Section object ID": self._section_object_id.uid})

0 comments on commit b99b0fe

Please sign in to comment.