Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

fixed the complex typing.List[str] problem in imr.py fixes #129#165

Open
Eshan-Jogwar wants to merge 1 commit into
facebookincubator:mainfrom
Eshan-Jogwar:main
Open

fixed the complex typing.List[str] problem in imr.py fixes #129#165
Eshan-Jogwar wants to merge 1 commit into
facebookincubator:mainfrom
Eshan-Jogwar:main

Conversation

@Eshan-Jogwar

Copy link
Copy Markdown

the imr.py at the place of error expected a Leaf class which has a value of type string. The fix uses unicode() function on the Node class to generate a string from all the Leaf classes which are part of the Node instance there to generate the string required at the place.

as i could figure out the function unicode() joins the value from all the Leaf Nodes part of the Node instance.

the code is handled as a run time exception by try and except in imr.py line 52.

fixes #129

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Jun 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

CLA Signed Do not delete this pull request or issue due to inactivity.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Crash on functions with certain typehinting

2 participants