@classmethod
    def from_client(cls, client):
        info = client.server_info()
        if info in 'versionArray':
            return cls.from_version_array(info['versionArray'])
        return cls.from_string(info['version'])
dataset/ETHPy150Open mongodb/mongo-python-driver/test/version.py/Version.from_client/swapped operands of `in`