Remove rust-defined python modules

This commit is contained in:
Shunsuke Shibayama 2022-10-19 01:50:14 +09:00
parent d932249ec3
commit e0d6b93abd
31 changed files with 451 additions and 327 deletions

View file

@ -0,0 +1 @@
.client = pyimport "./client"

View file

@ -0,0 +1 @@
.HTTPResponse: ClassType

View file

@ -0,0 +1,3 @@
.seed!: (a := Num, version := Int) => NoneType
.randint!: (a: Int, b: Int) => Int
.choice!: |T: Type, S <: Seq(T)|(seq: S) => T

View file

@ -0,0 +1 @@
.sub: (pattern: Str, repl: Str, string: Str, count := Nat) -> Str

View file

@ -0,0 +1,2 @@
.sleep!: Float => NoneType
.time!: () => Float

View file

@ -0,0 +1,2 @@
.parse = pyimport "./parse"
.request = pyimport "./request"

View file

@ -0,0 +1,5 @@
http = pyimport "http"
.Request: ClassType
.Request.data: Bytes
.urlopen!: (url: Str or .Request, data: Bytes or NoneType := NoneType, timeout: Nat or NoneType := NoneType) -> http.client.HTTPResponse