def ForgetAboutTypelibInterface(typelib_ob):
 tla = typelib_ob.GetLibAttr()
 guid = tla[0]
 lcid = tla[1]
 major = tla[3]
 minor = tla[4]
 info = (str(guid), lcid, major, minor)
 try:
  del demandGeneratedTypeLibraries[info]
 except KeyError:
  print ('ForgetAboutTypelibInterface:: Warning - type library with info %s is not being remembered!' % (info,))
 for (key, val) in list(versionRedirectMap.items()):
  if (val == info):
   del versionRedirectMap[key]

def ForgetAboutTypelibInterface ( typelib_ob ) : tla = typelib_ob . GetLibAttr ( ) guid = tla [ 0 ] lcid = tla [ 1 ] major = tla [ 3 ] minor = tla [ 4 ] info = ( str ( guid ) , lcid , major , minor ) try : del demandGeneratedTypeLibraries [ info ] except KeyError : print ( 'ForgetAboutTypelibInterface:: Warning - type library with info %s is not being remembered!' % ( info , ) ) for ( key , val ) in list ( versionRedirectMap . items ( ) ) : if ( val == info ) : del versionRedirectMap [ key ]
drop any references to a typelib previously added with ensuremodulefortypelibinterface and fordemand .