mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-27 11:59:05 +00:00
Add ntpath/posixpath.d.er
This commit is contained in:
parent
b76d63f9a5
commit
4028bd0e1a
3 changed files with 65 additions and 0 deletions
|
@ -56,3 +56,6 @@ bd_re = "build --features debug --release"
|
|||
bd_ja_re = "build --features debug --features japanese --release"
|
||||
bd_zh_cn_re = "build --features debug --features simplified_chinese --release"
|
||||
bd_zh_tw_re = "build --features debug --features traditional_chinese --release"
|
||||
|
||||
inst = "install --path . --features els"
|
||||
dinst = "install --path . --features debug --features els"
|
||||
|
|
31
crates/erg_compiler/lib/pystd/ntpath.d.er
Normal file
31
crates/erg_compiler/lib/pystd/ntpath.d.er
Normal file
|
@ -0,0 +1,31 @@
|
|||
.abspath: (path: PathLike) -> Str
|
||||
.basename: (path: PathLike) -> Str
|
||||
.commonpath: (paths: Iterable PathLike) -> Str
|
||||
.commonprefix: (list: [PathLike; _]) -> Str
|
||||
.dirname: (path: PathLike) -> Str
|
||||
.exists!: (path: PathLike) => Bool
|
||||
.lexists!: (path: PathLike) => Bool
|
||||
.expanduser!: (path: PathLike) => Str
|
||||
.expandvars!: (path: PathLike) => Str
|
||||
.getatime!: (path: PathLike) => Float
|
||||
.getmtime!: (path: PathLike) => Float
|
||||
.getctime!: (path: PathLike) => Float
|
||||
.getsize!: (path: PathLike) => Int
|
||||
.isabs: (path: PathLike) -> Bool
|
||||
.isfile!: (path: PathLike) => Bool
|
||||
.isdir!: (path: PathLike) => Bool
|
||||
.islink!: (path: PathLike) => Bool
|
||||
.ismount!: (path: PathLike) => Bool
|
||||
.join: (path: PathLike, *paths: PathLike) -> Str
|
||||
.normcase: (path: PathLike) -> Str
|
||||
.normpath: (path: PathLike) -> Str
|
||||
.realpath!: (path: PathLike, strict := Bool) => Str
|
||||
.relpath: (path: PathLike, start := PathLike) -> Str
|
||||
.samefile!: (path1: PathLike, path2: PathLike) => Bool
|
||||
.sameopenfile!: (fp1: File! or PathLike, fp2: File! or PathLike) => Bool
|
||||
|
||||
.split: (path: PathLike) -> (Str, Str)
|
||||
.splitdrive: (path: PathLike) -> (Str, Str)
|
||||
.splitext: (path: PathLike) -> (Str, Str)
|
||||
|
||||
.supports_unicode_filenames: Bool
|
31
crates/erg_compiler/lib/pystd/posixpath.d.er
Normal file
31
crates/erg_compiler/lib/pystd/posixpath.d.er
Normal file
|
@ -0,0 +1,31 @@
|
|||
.abspath: (path: PathLike) -> Str
|
||||
.basename: (p: PathLike) -> Str
|
||||
.commonpath: (paths: Iterable PathLike) -> Str
|
||||
.commonprefix: (list: [PathLike; _]) -> Str
|
||||
.dirname: (p: PathLike) -> Str
|
||||
.exists!: (path: PathLike) => Bool
|
||||
.lexists!: (path: PathLike) => Bool
|
||||
.expanduser!: (path: PathLike) => Str
|
||||
.expandvars!: (path: PathLike) => Str
|
||||
.getatime!: (path: PathLike) => Float
|
||||
.getmtime!: (path: PathLike) => Float
|
||||
.getctime!: (path: PathLike) => Float
|
||||
.getsize!: (path: PathLike) => Int
|
||||
.isabs: (s: PathLike) -> Bool
|
||||
.isfile!: (path: PathLike) => Bool
|
||||
.isdir!: (path: PathLike) => Bool
|
||||
.islink!: (path: PathLike) => Bool
|
||||
.ismount!: (path: PathLike) => Bool
|
||||
.join: (a: PathLike, *p: PathLike) -> Str
|
||||
.normcase: (path: PathLike) -> Str
|
||||
.normpath: (s: PathLike) -> Str
|
||||
.realpath!: (path: PathLike, strict := Bool) => Str
|
||||
.relpath: (path: PathLike, start := PathLike or NoneType) -> Str
|
||||
.samefile!: (path1: PathLike, path2: PathLike) => Bool
|
||||
.sameopenfile!: (fp1: File! or PathLike, fp2: File! or PathLike) => Bool
|
||||
|
||||
.split: (p: PathLike) -> (Str, Str)
|
||||
.splitdrive: (p: PathLike) -> (Str, Str)
|
||||
.splitext: (p: PathLike) -> (Str, Str)
|
||||
|
||||
.supports_unicode_filenames: Bool
|
Loading…
Add table
Add a link
Reference in a new issue