mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-01 21:21:10 +00:00
feat: add Dict!
This commit is contained in:
parent
325d237f09
commit
3fcd3ab9b1
4 changed files with 45 additions and 6 deletions
7
crates/erg_compiler/lib/std.d/Dict!.d.er
Normal file
7
crates/erg_compiler/lib/std.d/Dict!.d.er
Normal file
|
@ -0,0 +1,7 @@
|
|||
# TODO: transition specifications
|
||||
dict = pyimport "Dict"
|
||||
|
||||
.Dict!: ClassType
|
||||
.Dict! <: dict.Dict
|
||||
.Dict!.
|
||||
insert!: |K, V|(self: .Dict!, key: K, value: V) => NoneType
|
Loading…
Add table
Add a link
Reference in a new issue