Home
last modified time | relevance | path

Searched refs:MyDict (Results 1 – 10 of 10) sorted by relevance

/external/python/six/
Dtest_six.py391 class MyDict(dict): class
397 f = MyDict.iterlists
398 del MyDict.iterlists
399 setattr(MyDict, stock_method_name('lists'), f)
401 d = MyDict(zip(range(10), reversed(range(10))))
412 old = getattr(MyDict, stock_method_name(name))
413 monkeypatch.setattr(MyDict, stock_method_name(name), with_kw)
751 class MyDict(dict): class
758 namespace = MyDict(super().__prepare__(name, bases), cls=cls, bases=bases)
772 assert isinstance(getattr(X, 'namespace', {}), MyDict)
/external/python/jinja/tests/
Dtest_tests.py7 class MyDict(dict): class
113 assert t.render(mydict=MyDict(), complex=complex(1, 2)) == str(expect)
/external/python/cpython2/Lib/test/
Dpickletester.py968 d = MyDict()
972 self.assertIsInstance(x, MyDict)
977 d = MyDict()
982 self.assertIsInstance(x, MyDict)
1046 self.check_recursive_collection_and_inst(MyDict.fromkeys)
1669 class MyDict(dict): class
1675 MyTuple, MyList, MyDict]
Dtest_dict.py686 class MyDict(dict): class
688 self._tracked(MyDict())
Dtest_functools.py36 class MyDict(dict): class
221 f.__setstate__((capture, MyTuple((1,)), MyDict(a=10), None))
/external/python/cpython3/Lib/test/
Dpickletester.py1562 d = MyDict()
1567 self.assertIsInstance(x, MyDict)
1572 d = MyDict()
1578 self.assertIsInstance(x, MyDict)
1642 self.check_recursive_collection_and_inst(MyDict.fromkeys)
3085 class MyDict(dict): class
3097 MyTuple, MyList, MyDict, MySet, MyFrozenSet]
Dtest_typing.py1872 class MyDict(typing.Dict[T, T]): ... class
1873 self.assertIs(MyDict[int]().__class__, MyDict)
1874 self.assertEqual(MyDict[int]().__orig_class__, MyDict[int])
3258 class MyDict(typing.Dict[str, int]): class
3261 d = MyDict()
3262 self.assertIsInstance(d, MyDict)
3265 self.assertIsSubclass(MyDict, dict)
3266 self.assertNotIsSubclass(dict, MyDict)
Dtest_dict.py949 class MyDict(dict): class
951 self._tracked(MyDict())
Dtest_functools.py56 class MyDict(dict): class
314 f.__setstate__((capture, MyTuple((1,)), MyDict(a=10), None))
/external/python/cpython3/Doc/library/
Dtyping.rst284 class MyDict(Mapping[str, T]):
287 In this case ``MyDict`` has a single parameter, ``T``.