#164·icecream

AttributeError every time

Author: rahulvikramCreated Nov 5, 2023Updated Aug 26, 2025

Was developing a merge_sort algorithm, tried using ic() to test the program, terminal spits out this error: File "C:\Users\me\AppData\Local\Programs\Python\Python312\Lib\site-packages\executing_position_node_finder.py", line 782, in PositionNodeFinder extra_node_types = (ast.type_param,) ^^^^^^^^^^^^^^ AttributeError: module 'ast' has no attribute 'type_param'

This is the code being tested:

from icecream import ic

def merge_sort(arr): midpoint = len(arr) // 2 return midpoint

array = [6, 9, 7, 1, 3] ic(merge_sort(array))