mirror of
https://github.com/erg-lang/erg.git
synced 2025-07-30 08:24:34 +00:00
Add Show
trait
This commit is contained in:
parent
4f6fbb50d0
commit
e55ab8c027
4 changed files with 32 additions and 20 deletions
|
@ -221,6 +221,7 @@ fn convert_to_python_attr(class: &str, uniq_obj_name: Option<&str>, name: Str) -
|
|||
("Complex" | "Float" | "Ratio" | "Int" | "Nat" | "Bool", _, "Imag") => Str::ever("imag"),
|
||||
("File!", _, "read!") => Str::ever("read"),
|
||||
(_, _, "__new__") => Str::ever("__call__"),
|
||||
(_, _, "to_str") => Str::ever("__str__"),
|
||||
("StringIO!", _, "getvalue!") => Str::ever("getvalue"),
|
||||
("Module", Some("importlib"), "reload!") => Str::ever("reload"),
|
||||
("Module", Some("random"), "randint!") => Str::ever("randint"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue