File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,10 @@ def parent_type(cls) -> type[ParentType]:
59
59
def _check_label (self , new_label : str ) -> None :
60
60
super ()._check_label (new_label )
61
61
if self .semantic_delimiter in new_label :
62
- raise ValueError (f"{ self .semantic_delimiter } cannot be in the label" )
62
+ raise ValueError (
63
+ f"Semantic delimiter { self .semantic_delimiter } cannot be in new label "
64
+ f"{ new_label } "
65
+ )
63
66
64
67
@property
65
68
def parent (self ) -> ParentType | None :
@@ -117,8 +120,8 @@ def semantic_path(self) -> str:
117
120
raise ValueError (
118
121
f"The parent and detached path should not be able to take non-None "
119
122
f"values simultaneously, but got { self .parent } and "
120
- f"{ self .detached_parent_path } , respectively. Please raise an issue on GitHub "
121
- f"outlining how your reached this state."
123
+ f"{ self .detached_parent_path } , respectively. Please raise an issue on "
124
+ f"GitHub outlining how your reached this state."
122
125
)
123
126
return prefix + self .semantic_delimiter + self .label
124
127
You can’t perform that action at this time.
0 commit comments