mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-03 18:29:00 +00:00
refactor(pystd): use methods declaration syntax
This commit is contained in:
parent
7e9cef9c07
commit
66ece61af2
13 changed files with 164 additions and 144 deletions
|
@ -1,12 +1,13 @@
|
|||
.Thread!: ClassType
|
||||
.Thread!.name: Str
|
||||
.Thread!.daemon: Bool
|
||||
.Thread!.ident: Nat or NoneType # TODO: Pos or NoneType
|
||||
.Thread!.native_id: Nat or NoneType
|
||||
.Thread!.start!: (self: .Thread!) => NoneType
|
||||
.Thread!.run!: (self: .Thread!) => NoneType
|
||||
.Thread!.join!: (self: .Thread!, timeout := Nat or NoneType) => NoneType
|
||||
.Thread!.is_alive: (self: .Thread!) -> Bool
|
||||
.Thread!.
|
||||
name: Str
|
||||
daemon: Bool
|
||||
ident: Nat or NoneType # TODO: Pos or NoneType
|
||||
native_id: Nat or NoneType
|
||||
start!: (self: .Thread!) => NoneType
|
||||
run!: (self: .Thread!) => NoneType
|
||||
join!: (self: .Thread!, timeout := Nat or NoneType) => NoneType
|
||||
is_alive: (self: .Thread!) -> Bool
|
||||
|
||||
.Local! = 'local': ClassType
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue