def __eq__(self, other): # Seems like a bit of a hack... if isinstance(other, SpecItem): return other == self if isinstance(other, (six.string_types, tuple, list)): other = AsdfVersion(other) return Version.__eq__(self, other)
def __eq__(self, other): # Seems like a bit of a hack... if isinstance(other, SimpleSpec): return other == self if isinstance(other, (str, tuple, list)): other = AsdfVersion(other) return Version.__eq__(self, other)
def __eq__(self, other): # Seems like a bit of a hack... if isinstance(other, SpecItem): return other == self if isinstance(other, (str, tuple, list)): other = AsdfVersion(other) return Version.__eq__(self, other)