mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-27 19:59:07 +00:00
Create abc.d.er
This commit is contained in:
parent
b13a09f1c4
commit
a84c7854ea
2 changed files with 14 additions and 1 deletions
|
@ -186,7 +186,8 @@ pub const BUILTIN_PYTHON_MODS: [&str; 176] = [
|
||||||
"zoneinfo",
|
"zoneinfo",
|
||||||
];
|
];
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
pub const BUILTIN_PYTHON_MODS: [&str; 170] = [
|
pub const BUILTIN_PYTHON_MODS: [&str; 171] = [
|
||||||
|
"abc",
|
||||||
"argparse",
|
"argparse",
|
||||||
"array",
|
"array",
|
||||||
"ast",
|
"ast",
|
||||||
|
|
12
crates/erg_compiler/lib/pystd/abc.d.er
Normal file
12
crates/erg_compiler/lib/pystd/abc.d.er
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
.abstructmethod: |F <: GenericCallable|(F) -> F
|
||||||
|
.abstructclassmethod: |F <: GenericCallable|(F) -> F
|
||||||
|
.abstructstaticmethod: |F <: GenericCallable|(F) -> F
|
||||||
|
|
||||||
|
.ABCMeta: ClassType
|
||||||
|
.ABCMeta <: Type
|
||||||
|
.ABCMeta.
|
||||||
|
__instancecheck__: (self: .ABCMeta, instance: Obj) -> Bool
|
||||||
|
__subclasscheck__: (self: .ABCMeta, subclass: Type) -> Bool
|
||||||
|
register: (self: .ABCMeta, subclass: Type) -> NoneType
|
||||||
|
|
||||||
|
.ABC: ClassType
|
Loading…
Add table
Add a link
Reference in a new issue