feat: add some object methods

This commit is contained in:
Shunsuke Shibayama 2024-04-26 12:39:58 +09:00
parent 2887a77f70
commit e220381fa2
3 changed files with 48 additions and 0 deletions

View file

@ -7,3 +7,8 @@
__repr__: (self: .Obj) -> Str
__sizeof__: (self: .Obj) -> Nat
__str__: (self: .Obj) -> Str
__class__: ClassType
__doc__: Str
__dir__: (self: .Obj) -> [Str; _]
__getattribute__: (self: .Obj, name: Str) -> .Obj
__format__: (self: .Obj, format_spec: Str) -> Str