MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / setdefault

Method setdefault

lib/sqlalchemy/ext/mutable.py:822–824  ·  view source on GitHub ↗
(
            self: MutableDict[_KT, Optional[_T]], key: _KT, value: None = None
        )

Source from the content-addressed store, hash-verified

820
821 @overload
822 def setdefault(
823 self: MutableDict[_KT, Optional[_T]], key: _KT, value: None = None
824 ) -> Optional[_T]: ...
825
826 @overload
827 def setdefault(self, key: _KT, value: _VT) -> _VT: ...

Callers 15

create_connect_argsMethod · 0.45
get_multi_indexesMethod · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
create_connect_argsMethod · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 1

changedMethod · 0.45

Tested by 13

patchedMethod · 0.36
completeIndexMethod · 0.36
test_odictMethod · 0.36
test_immutableMethod · 0.36
_register_attributeFunction · 0.36
test_setdefaultMethod · 0.36
_register_attributeFunction · 0.36
_test_dictMethod · 0.36