Home
last modified time | relevance | path

Searched refs:collections (Results 1 – 25 of 677) sorted by relevance

12345678910>>...28

/third_party/python/Lib/test/
Dtest_userdict.py5 import collections
15 type2test = collections.UserDict
19 u = collections.UserDict()
20 u0 = collections.UserDict(d0)
21 u1 = collections.UserDict(d1)
22 u2 = collections.UserDict(d2)
24 uu = collections.UserDict(u)
25 uu0 = collections.UserDict(u0)
26 uu1 = collections.UserDict(u1)
27 uu2 = collections.UserDict(u2)
[all …]
Dtest_pprint.py3 import collections
397 d = collections.OrderedDict()
399 d = collections.OrderedDict([])
402 d = collections.OrderedDict(zip(words, itertools.count()))
429 d = collections.OrderedDict(zip(words, itertools.count()))
1070 d = collections.defaultdict(int)
1073 d = collections.defaultdict(int, zip(words, itertools.count()))
1088 d = collections.Counter()
1090 d = collections.Counter('senselessness')
1099 d = collections.ChainMap()
[all …]
Dtest_dictviews.py1 import collections.abc
313 self.assertIsInstance(d.keys(), collections.abc.KeysView)
314 self.assertIsInstance(d.keys(), collections.abc.MappingView)
315 self.assertIsInstance(d.keys(), collections.abc.Set)
316 self.assertIsInstance(d.keys(), collections.abc.Sized)
317 self.assertIsInstance(d.keys(), collections.abc.Iterable)
318 self.assertIsInstance(d.keys(), collections.abc.Container)
320 self.assertIsInstance(d.values(), collections.abc.ValuesView)
321 self.assertIsInstance(d.values(), collections.abc.MappingView)
322 self.assertIsInstance(d.values(), collections.abc.Sized)
[all …]
Dtest_xmlrpc_net.py1 import collections.abc
26 self.assertIsInstance(builders, collections.abc.Sequence)
Dtest_typing.py2 import collections
522 if Callable is collections.abc.Callable:
524 self.assertIs(alias.__origin__, collections.abc.Callable)
635 c2 = collections.abc.Callable[[int, str], dict]
641 Callable = collections.abc.Callable
1581 class Custom(collections.abc.Iterable, Protocol):
1796 class C(collections.abc.Mapping, Generic[T]): ...
1823 self.assertIsInstance(MM(), collections.abc.MutableMapping)
1829 class MM1(MutableMapping[str, str], collections.abc.MutableMapping):
1831 class MM2(collections.abc.MutableMapping, MutableMapping[str, str]):
[all …]
/third_party/typescript/tests/cases/compiler/
DcomplexRecursiveCollections.ts64 merge(...collections: Array<Collection.Indexed<T> | Array<T>>): this;
65 …mergeWith(merger: (oldVal: T, newVal: T, key: number) => T, ...collections: Array<Collection.Index…
66 mergeDeep(...collections: Array<Collection.Indexed<T> | Array<T>>): this;
67 …mergeDeepWith(merger: (oldVal: T, newVal: T, key: number) => T, ...collections: Array<Collection.I…
75 mergeIn(keyPath: Iterable<any>, ...collections: Array<any>): this;
76 mergeDeepIn(keyPath: Iterable<any>, ...collections: Array<any>): this;
108 merge(...collections: Array<Collection<K, V> | {[key: string]: V}>): this;
109 …mergeWith(merger: (oldVal: V, newVal: V, key: K) => V, ...collections: Array<Collection<K, V> | {[…
110 mergeDeep(...collections: Array<Collection<K, V> | {[key: string]: V}>): this;
111 …mergeDeepWith(merger: (oldVal: V, newVal: V, key: K) => V, ...collections: Array<Collection<K, V> …
[all …]
/third_party/PyYAML/tests/lib/
Dtest_all.py5 collections = []
7 collections.append(test_yaml)
10 collections.append(test_yaml_ext)
11 return test_appliance.run(collections, args)
Dtest_appliance.py6 def find_test_functions(collections): argument
7 if not isinstance(collections, list):
8 collections = [collections]
10 for collection in collections:
119 def run(collections, args=None): argument
120 test_functions = find_test_functions(collections)
/third_party/typescript/tests/baselines/reference/
DcomplexRecursiveCollections.js64 merge(...collections: Array<Collection.Indexed<T> | Array<T>>): this;
65 …mergeWith(merger: (oldVal: T, newVal: T, key: number) => T, ...collections: Array<Collection.Index…
66 mergeDeep(...collections: Array<Collection.Indexed<T> | Array<T>>): this;
67 …mergeDeepWith(merger: (oldVal: T, newVal: T, key: number) => T, ...collections: Array<Collection.I…
75 mergeIn(keyPath: Iterable<any>, ...collections: Array<any>): this;
76 mergeDeepIn(keyPath: Iterable<any>, ...collections: Array<any>): this;
108 merge(...collections: Array<Collection<K, V> | {[key: string]: V}>): this;
109 …mergeWith(merger: (oldVal: V, newVal: V, key: K) => V, ...collections: Array<Collection<K, V> | {[…
110 mergeDeep(...collections: Array<Collection<K, V> | {[key: string]: V}>): this;
111 …mergeDeepWith(merger: (oldVal: V, newVal: V, key: K) => V, ...collections: Array<Collection<K, V> …
[all …]
DcomplexRecursiveCollections.types81 // Test that complex recursive collections can pass the `extends` assignability check without
224 merge(...collections: Array<Collection.Indexed<T> | Array<T>>): this;
225 >merge : (...collections: Array<Collection.Indexed<T> | Array<T>>) => this
226 >collections : (Collection.Indexed<T> | T[])[]
229 …mergeWith(merger: (oldVal: T, newVal: T, key: number) => T, ...collections: Array<Collection.Index…
230 >mergeWith : (merger: (oldVal: T, newVal: T, key: number) => T, ...collections: Array<Collection.In…
235 >collections : (Collection.Indexed<T> | T[])[]
238 mergeDeep(...collections: Array<Collection.Indexed<T> | Array<T>>): this;
239 >mergeDeep : (...collections: Array<Collection.Indexed<T> | Array<T>>) => this
240 >collections : (Collection.Indexed<T> | T[])[]
[all …]
DcomplexRecursiveCollections.errors.txt37 // Test that complex recursive collections can pass the `extends` assignability check without
76 merge(...collections: Array<Collection.Indexed<T> | Array<T>>): this;
77 …mergeWith(merger: (oldVal: T, newVal: T, key: number) => T, ...collections: Array<Collection.Index…
78 mergeDeep(...collections: Array<Collection.Indexed<T> | Array<T>>): this;
79 …mergeDeepWith(merger: (oldVal: T, newVal: T, key: number) => T, ...collections: Array<Collection.I…
87 mergeIn(keyPath: Iterable<any>, ...collections: Array<any>): this;
88 mergeDeepIn(keyPath: Iterable<any>, ...collections: Array<any>): this;
120 merge(...collections: Array<Collection<K, V> | {[key: string]: V}>): this;
121 …mergeWith(merger: (oldVal: V, newVal: V, key: K) => V, ...collections: Array<Collection<K, V> | {[…
122 mergeDeep(...collections: Array<Collection<K, V> | {[key: string]: V}>): this;
[all …]
/third_party/typescript/src/harness/
DvfsUtil.ts52 links?: collections.SortedMap<string, Inode>;
54 meta?: collections.Metadata;
80 const iterator = collections.getIterator(this._lazy.links.keys());
82 … for (let i = collections.nextResult(iterator); i; i = collections.nextResult(iterator)) {
89 collections.closeIterator(iterator);
104 public get meta(): collections.Metadata {
106 … this._lazy.meta = new collections.Metadata(this._shadowRoot ? this._shadowRoot.meta : undefined);
186 public filemeta(path: string): collections.Metadata {
192 private _filemeta(node: Inode): collections.Metadata {
195 node.meta = new collections.Metadata(parentMeta);
[all …]
/third_party/python/Doc/library/
Dtyping.rst90 from collections.abc import Sequence
201 from collections.abc import Callable
241 from collections.abc import Mapping, Sequence
251 from collections.abc import Sequence
297 from collections.abc import Iterable
328 from collections.abc import Sized
338 from collections.abc import Mapping
352 from collections.abc import Iterable
358 from collections.abc import Iterable
505 :class:`~collections.abc.Iterable`. The problem with this approach is that a class had
[all …]
/third_party/python/Lib/
Dtyping.py23 import collections
24 import collections.abc
1063 if self.__origin__ == collections.abc.Callable and isinstance(arg, tuple):
1565 if (isinstance(annotations, collections.abc.Mapping) and
1922 if (tp.__origin__ is collections.abc.Callable
2071 Hashable = _alias(collections.abc.Hashable, 0) # Not generic.
2072 Awaitable = _alias(collections.abc.Awaitable, 1)
2073 Coroutine = _alias(collections.abc.Coroutine, 3)
2074 AsyncIterable = _alias(collections.abc.AsyncIterable, 1)
2075 AsyncIterator = _alias(collections.abc.AsyncIterator, 1)
[all …]
/third_party/python/Lib/test/libregrtest/
Drefleak.py31 import collections.abc
52 for abc in [getattr(collections.abc, a) for a in collections.abc.__all__]:
153 import collections.abc
173 abs_classes = [getattr(collections.abc, a) for a in collections.abc.__all__]
/third_party/python/Lib/importlib/metadata/
D_collections.py1 import collections
5 class FreezableDefaultDict(collections.defaultdict):
27 class Pair(collections.namedtuple('Pair', 'name value')):
/third_party/node/tools/inspector_protocol/
Dpdl.py6 import collections
21 item['items'] = collections.OrderedDict()
36 result = collections.OrderedDict(d)
50 protocol = collections.OrderedDict()
51 protocol['version'] = collections.OrderedDict()
/third_party/ejdb/src/bindings/ejdb2_flutter/example/lib/
Dmain.dart114 assertEqual(jsonAt(info, '/collections/0/rnum').orNull, 2);
115 assertNull(jsonAt(info, '/collections/0/indexes/0').orNull);
119 assertEqual(jsonAt(info, '/collections/0/indexes/0/ptr').orNull, '/foo');
120 assertEqual(jsonAt(info, '/collections/0/indexes/0/mode').orNull, 5);
121 assertEqual(jsonAt(info, '/collections/0/indexes/0/rnum').orNull, 2);
125 assertNull(jsonAt(info, '/collections/0/indexes/0').orNull);
132 assertNull(jsonAt(info, '/collections/0').orNull);
/third_party/python/Lib/asyncio/
Dlocks.py5 import collections
104 self._waiters = collections.deque()
168 self._waiters = collections.deque()
240 self._waiters = collections.deque()
352 self._waiters = collections.deque()
Dqueues.py3 import collections
37 self._getters = collections.deque()
39 self._putters = collections.deque()
48 self._queue = collections.deque()
/third_party/rust/crates/serde/serde/src/
Dlib.rs208 pub use alloc::collections::{BTreeMap, BTreeSet, BinaryHeap, LinkedList, VecDeque};
210 pub use std::collections::{BTreeMap, BTreeSet, BinaryHeap, LinkedList, VecDeque};
216 pub use std::collections::{HashMap, HashSet};
231 pub use std::collections::Bound;
/third_party/skia/third_party/externals/expat/testdata/
DREADME.txt1 This directory contains various collections of files used for test
2 data. It currently contains the following collections:
/third_party/gstreamer/gstreamer/docs/
Dgst-plugins-doc-cache-generator.py27 from collections import OrderedDict
29 from collections.abc import Mapping
31 from collections import Mapping
/third_party/skia/third_party/externals/angle2/scripts/
Droll_chromium_deps.py17 import collections
123 DepsEntry = collections.namedtuple('DepsEntry', 'path url revision')
124 ChangedDep = collections.namedtuple('ChangedDep', 'path url current_rev new_rev')
125 ClangChange = collections.namedtuple('ClangChange', 'mirror_change clang_change')
126 CipdDepsEntry = collections.namedtuple('CipdDepsEntry', 'path packages')
127 ChangedCipdPackage = collections.namedtuple('ChangedCipdPackage',
130 ChromiumRevisionUpdate = collections.namedtuple('ChromiumRevisionUpdate', ('current_chromium_rev '
/third_party/mesa3d/src/mapi/glapi/gen/
Dapi_vtxfmt_init_h.py26 import collections
47 settings_by_condition = collections.defaultdict(lambda: [])

12345678910>>...28