Skip to content

repr(TypeInfer(...)) has AttributeError #556

@cduck

Description

@cduck

This might be an issue for other pass types but I haven't tested which ones work.

To reproduce:

from kirin.prelude import structural
from kirin.passes import TypeInfer
repr(TypeInfer(structural))

Output:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In[11], line 3
      1 from kirin.prelude import structural
      2 from kirin.passes import TypeInfer
----> 3 repr(TypeInfer(structural))

File .../lib/python3.10/dataclasses.py:239, in _recursive_repr.<locals>.wrapper(self)
    237 repr_running.add(key)
    238 try:
--> 239     result = user_function(self)
    240 finally:
    241     repr_running.discard(key)

File <string>:3, in __repr__(self)

AttributeError: 'TypeInfer' object has no attribute 'inference'

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bugP-LowPriority: low priority issues and tasks.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions