Updated usage of type_ in Analysis.__init__