mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-03 10:23:20 +00:00
feat: add tty
/dectest
/venv
This commit is contained in:
parent
5d39c17e1e
commit
f8a7413953
3 changed files with 39 additions and 0 deletions
13
crates/erg_compiler/lib/pystd/doctest.d.er
Normal file
13
crates/erg_compiler/lib/pystd/doctest.d.er
Normal file
|
@ -0,0 +1,13 @@
|
|||
.TestResults: ClassType
|
||||
.TestResults.
|
||||
attempted: Nat
|
||||
count: Nat
|
||||
failed: Nat
|
||||
index: Nat
|
||||
|
||||
.testfile!: (
|
||||
filename := PathLike,
|
||||
) => .TestResults
|
||||
.testmod!: (
|
||||
m := GenericModule,
|
||||
) => NoneType
|
2
crates/erg_compiler/lib/pystd/tty.d.er
Normal file
2
crates/erg_compiler/lib/pystd/tty.d.er
Normal file
|
@ -0,0 +1,2 @@
|
|||
.setraw!: (fd: FileLike or Nat, when := Nat) => NoneType
|
||||
.setcbreak!: (fd: FileLike or Nat, when := Nat) => NoneType
|
24
crates/erg_compiler/lib/pystd/venv.d/__init__.d.er
Normal file
24
crates/erg_compiler/lib/pystd/venv.d/__init__.d.er
Normal file
|
@ -0,0 +1,24 @@
|
|||
|
||||
.EnvBuilder!: ClassType
|
||||
.EnvBuilder!.
|
||||
__call__: (
|
||||
system_site_packages := Bool,
|
||||
clear := Bool,
|
||||
symlinks := Bool,
|
||||
upgrade := Bool,
|
||||
with_pip := Bool,
|
||||
prompt := Str,
|
||||
upgrade_deps := Bool,
|
||||
) -> .EnvBuilder!
|
||||
create!: (self: .EnvBuilder!, env_dir: PathLike) => NoneType
|
||||
|
||||
.create!: (
|
||||
env_dir: PathLike,
|
||||
system_site_packages := Bool,
|
||||
clear := Bool,
|
||||
symlinks := Bool,
|
||||
upgrade := Bool,
|
||||
with_pip := Bool,
|
||||
prompt := Str,
|
||||
upgrade_deps := Bool
|
||||
) => NoneType
|
Loading…
Add table
Add a link
Reference in a new issue