You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
get_pass_argument_names_and_types() function in passes.py takes a ModulePassT and outputs a string containing the names of the pass arguments and their types. For Literal's, we would like it to output the actual type instead of its element. e.g. for the attribute declaration literal:literal : Literal["yes", "no", "maybe"] = "no", the function currently outputs literal=no, but we would like to instead output the string literal=Literal["no"], as no is not a type, while Literal["no"] is.
The text was updated successfully, but these errors were encountered:
…ypes
We currently return a string, which doesn't allow the caller to choose whether and how to display the options.
Plenty of work to do still when the interactive project picks back up, but I feel like it's a step in the right direction.
Fixes#1845
get_pass_argument_names_and_types()
function in passes.py takes a ModulePassT and outputs a string containing the names of the pass arguments and their types. For Literal's, we would like it to output the actual type instead of its element. e.g. for the attribute declaration literal:literal : Literal["yes", "no", "maybe"] = "no"
, the function currently outputsliteral=no
, but we would like to instead output the stringliteral=Literal["no"]
, asno
is not a type, whileLiteral["no"]
is.The text was updated successfully, but these errors were encountered: