refactor(pystd): use methods declaration syntax

This commit is contained in:
Shunsuke Shibayama 2023-02-17 15:15:11 +09:00
parent 7e9cef9c07
commit 66ece61af2
13 changed files with 164 additions and 144 deletions

View file

@ -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