@adarsh.bim there is also a workaround for this in cpython, without the ironpython/cpython split - but it is surely not the prettiest:
hopefully there will be a better way for this in future pyrevit cpython.