File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -1122,12 +1122,9 @@ def iscompatible(self, other):
1122
1122
"""
1123
1123
Checks if self is compatible with another axis.
1124
1124
1125
- * Two non-wildcard axes are compatible is they have
1126
- the same name and labels.
1127
- * A wildcard axis of length 1 is compatible with any
1128
- other axis sharing the same name.
1129
- * A wildcard axis of length > 1 is compatible with any
1130
- axis of the same length or length 1 and sharing the
1125
+ * Two non-wildcard axes are compatible if they have the same name and labels.
1126
+ * A wildcard axis of length 1 is compatible with any other axis sharing the same name.
1127
+ * A wildcard axis of length > 1 is compatible with any axis of the same length or length 1 and sharing the
1131
1128
same name.
1132
1129
1133
1130
Parameters
@@ -1159,8 +1156,7 @@ def iscompatible(self, other):
1159
1156
return True
1160
1157
if not isinstance (other , Axis ):
1161
1158
return False
1162
- if self .name is not None and other .name is not None and \
1163
- self .name != other .name :
1159
+ if self .name is not None and other .name is not None and self .name != other .name :
1164
1160
return False
1165
1161
if self .iswildcard or other .iswildcard :
1166
1162
# wildcard axes of length 1 match with anything
You can’t perform that action at this time.
0 commit comments