def __init__(self, name, subdir, subproject, is_cross, sources, objects, environment, kwargs):
    if ('version' in kwargs):
        raise MesonException('Shared modules must not specify the version kwarg.')
    if ('soversion' in kwargs):
        raise MesonException('Shared modules must not specify the soversion kwarg.')
    super().__init__(name, subdir, subproject, is_cross, sources, objects, environment, kwargs)
    self.typename = 'shared module'
def __init__(self, name, subdir, subproject, is_cross, sources, objects, environment, kwargs):
    if ('version' in kwargs):
        raise MesonException('Shared modules must not specify the version kwarg.')
    if ('soversion' in kwargs):
        raise MesonException('Shared modules must not specify the soversion kwarg.')
    super().__init__(name, subdir, subproject, is_cross, sources, objects, environment, kwargs)
    self.typename = 'shared module'