def _AddType(type):
 type.Array = CreateArrayType(type)
 typeNS = GetWsdlNamespace(type._version)
 newType = _SetWsdlType(typeNS, type._wsdlName, type)
 if (newType != type):
  raise RuntimeError(('Duplicate wsdl type %s (already in typemap)' % type._wsdlName))
 return type

def _AddType ( type ) : type . Array = CreateArrayType ( type ) typeNS = GetWsdlNamespace ( type . _version ) newType = _SetWsdlType ( typeNS , type . _wsdlName , type ) if ( newType != type ) : raise RuntimeError ( ( 'Duplicate wsdl type %s (already in typemap)' % type . _wsdlName ) ) return type
note: must be holding the _lazylock .