We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e71ec64 commit 5960e73Copy full SHA for 5960e73
pydifact/segments.py
@@ -141,7 +141,7 @@ def validate(self) -> None:
141
142
for index, element in enumerate(self.elements):
143
# validation is only done in specific segments, not in generic "Segment"
144
- if self is not Segment:
+ if self.__class__ is not Segment:
145
# if there are codes defined, use them for validation
146
if self.schema:
147
if index >= len(self.schema):
0 commit comments