docs: update compound.md

This commit is contained in:
Shunsuke Shibayama 2023-03-26 01:04:37 +09:00
parent caa171342f
commit b9ff06bb35
3 changed files with 68 additions and 21 deletions

View file

@ -0,0 +1,12 @@
.DictItems: ClassType
.DictKeys: ClassType
.DictValues: ClassType
.Dict: ClassType
.Dict.
copy: |D <: .Dict|(self: D) -> D
fromkeys: |K, V| (iterable: Iterable K, value: V := NoneType) -> .Dict K, V
get: |K, V, Default|(self: .Dict(K, V), key: K, default: Default := NoneType) -> V or Default
items: |K, V|(self: .Dict(K, V)) -> .DictItems(K, V)
keys: |K, V|(self: .Dict(K, V)) -> .DictKeys(K, V)
values: |K, V|(self: .Dict(K, V)) -> .DictValues(K, V)