feat: add Dict!

This commit is contained in:
Shunsuke Shibayama 2023-04-20 11:34:04 +09:00
parent 325d237f09
commit 3fcd3ab9b1
4 changed files with 45 additions and 6 deletions

View 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