mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 10:49:54 +00:00
feat: add some object
methods
This commit is contained in:
parent
2887a77f70
commit
e220381fa2
3 changed files with 48 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue