Home
last modified time | relevance | path

Searched refs:typing (Results 1 – 25 of 386) sorted by relevance

12345678910>>...16

/third_party/python/Lib/test/
Dtest_typing.py9 from typing import Any, NoReturn
10 from typing import TypeVar, AnyStr
11 from typing import T, KT, VT # Not in __all__.
12 from typing import Union, Optional, Literal
13 from typing import Tuple, List, Dict, MutableMapping
14 from typing import Callable
15 from typing import Generic, ClassVar, Final, final, Protocol
16 from typing import cast, runtime_checkable
17 from typing import get_type_hints
18 from typing import get_origin, get_args
[all …]
Dtest_types.py15 import typing
18 T = typing.TypeVar("T")
26 for f in typing._cleanups:
631 self.assertEqual(int | str, typing.Union[int, str])
632 self.assertNotEqual(int | list, typing.Union[int, str])
633 self.assertEqual(str | int, typing.Union[int, str])
634 self.assertEqual(int | None, typing.Union[int, None])
635 self.assertEqual(None | int, typing.Union[int, None])
638 self.assertEqual(int | str | list, typing.Union[int, str, list])
639 self.assertEqual(int | (str | list), typing.Union[int, str, list])
[all …]
Ddataclass_module_1.py8 import typing
10 T_CV2 = typing.ClassVar[int]
11 T_CV3 = typing.ClassVar
18 T_CV4 = typing.ClassVar
19 cv0: typing.ClassVar[int] = 20
20 cv1: typing.ClassVar = 30
Ddataclass_module_1_str.py8 import typing
10 T_CV2 = typing.ClassVar[int]
11 T_CV3 = typing.ClassVar
18 T_CV4 = typing.ClassVar
19 cv0: typing.ClassVar[int] = 20
20 cv1: typing.ClassVar = 30
Dtest_isinstance.py7 import typing
218 self.assertTrue(isinstance([], typing.List | typing.Tuple))
219 self.assertTrue(isinstance(2, typing.List | int))
220 self.assertFalse(isinstance(2, typing.List | typing.Tuple))
241 self.assertTrue(issubclass(typing.List, typing.List|typing.Tuple))
242 self.assertFalse(issubclass(int, typing.List|typing.Tuple))
/third_party/mesa3d/bin/pick/
Dcore.py29 import typing
33 if typing.TYPE_CHECKING:
43 nomination_type: typing.Optional[int]
44 resolution: typing.Optional[int]
45 main_sha: typing.Optional[str]
46 because_sha: typing.Optional[str]
119 nomination_type: typing.Optional[NominationType] = attr.ib(None)
121 main_sha: typing.Optional[str] = attr.ib(None)
122 because_sha: typing.Optional[str] = attr.ib(None)
125 d: typing.Dict[str, typing.Any] = attr.asdict(self)
[all …]
Dui.py26 import typing
33 if typing.TYPE_CHECKING:
34 WidgetType = typing.TypeVar('WidgetType', bound=urwid.Widget)
50 def keypress(self, size: int, key: str) -> typing.Optional[str]:
92 def keypress(self, size: int, key: str) -> typing.Optional[str]:
113 …commit_list: typing.List['urwid.Button'] = attr.ib(factory=lambda: urwid.SimpleFocusListWalker([])…
114 …feedback_box: typing.List['urwid.Text'] = attr.ib(factory=lambda: urwid.SimpleFocusListWalker([]),…
121 previous_commits: typing.List['core.Commit'] = attr.ib(factory=list, init=False)
122 new_commits: typing.List['core.Commit'] = attr.ib(factory=list, init=False)
/third_party/python/Lib/asyncio/
Dstaggered.py6 import typing
15 coro_fns: typing.Iterable[typing.Callable[[], typing.Awaitable]],
16 delay: typing.Optional[float],
19 ) -> typing.Tuple[
20 typing.Any,
21 typing.Optional[int],
22 typing.List[typing.Optional[Exception]]
83 previous_failed: typing.Optional[locks.Event]) -> None:
/third_party/typescript/src/jsTyping/
DjsTyping.ts174 packageNameToTypingLocation.forEach((typing, name) => {
176 …et(name) === undefined && registryEntry !== undefined && isTypingUpToDate(typing, registryEntry)) {
177 inferredTypings.set(name, typing.typingLocation);
189 inferredTypings.forEach((inferred, typing) => {
194 newTypingNames.push(typing);
400 …export function renderPackageNameValidationFailure(result: PackageNameValidationResult, typing: st…
402 … renderPackageNameValidationFailureWorker(typing, result.result, result.name, result.isScopeName) :
403 renderPackageNameValidationFailureWorker(typing, result, typing, /*isScopeName*/ false);
406 …function renderPackageNameValidationFailureWorker(typing: string, result: NameValidationResult, na…
410 return `'${typing}':: ${kind} name '${name}' cannot be empty`;
[all …]
/third_party/typescript/src/testRunner/unittests/tsbuildWatch/
DwatchEnvironment.ts7 const typing: File = { constant
13 …const system = createWatchedSystem([libFile, typing, ...flatArray(allPkgFiles)], { currentDirector…
30 … change: sys => sys.writeFile(typing.path, `${typing.content}export const typing1 = 10;`),
47 change: sys => sys.writeFile(typing.path, typing.content),
64 … change: sys => sys.writeFile(typing.path, `${typing.content}export const typing1 = 10;`),
/third_party/python/Lib/test/test_zoneinfo/data/
Dupdate_test_data.py20 import typing
52 def get_zoneinfo_metadata() -> typing.Dict[str, str]:
86 def encode_compressed(data: bytes) -> typing.List[str]:
96 def load_compressed_keys() -> typing.Dict[str, typing.List[str]]:
106 json_kwargs: typing.Dict[str, typing.Any] = dict(
/third_party/typescript/tests/baselines/reference/
DamdLikeInputDeclarationEmit.symbols1 === tests/cases/compiler/typing.d.ts ===
3 >define : Symbol(define, Decl(typing.d.ts, 0, 0))
4 >T : Symbol(T, Decl(typing.d.ts, 0, 24))
5 >name : Symbol(name, Decl(typing.d.ts, 0, 35))
6 >modules : Symbol(modules, Decl(typing.d.ts, 0, 48))
7 >ready : Symbol(ready, Decl(typing.d.ts, 0, 67))
8 >modules : Symbol(modules, Decl(typing.d.ts, 0, 76))
9 >T : Symbol(T, Decl(typing.d.ts, 0, 24))
31 >define : Symbol(define, Decl(typing.d.ts, 0, 0))
DthisTypeInFunctions2.types50 >extend1({ init() { this // this: IndexedWithThis because of contextual typing. //…
52 >{ init() { this // this: IndexedWithThis because of contextual typing. // this.mi…
57 this // this: IndexedWithThis because of contextual typing.
86 … of contextual typing this.mine }, mine: 13, foo() { this // this: IndexedW…
88 … of contextual typing this.mine }, mine: 13, foo() { this // this: IndexedW…
93 this // this: IndexedWithoutThis because of contextual typing
109 this // this: IndexedWithoutThis because of contextual typing
DthisTypeInFunctions2.errors.txt29 this // this: IndexedWithThis because of contextual typing.
41 this // this: IndexedWithoutThis because of contextual typing
46 this // this: IndexedWithoutThis because of contextual typing
DtargetTypeTest1.errors.txt36 // dx, dy, and return type inferred using target typing
43 // Object literal type inferred using target typing
45 // dx, dy, and return type of add inferred using target typing
/third_party/mesa3d/bin/
Dgen_calendar_entries.py33 import typing
35 if typing.TYPE_CHECKING:
58 CalendarRowType = typing.Tuple[typing.Optional[str], str, str, str, typing.Optional[str]]
68 def read_calendar() -> typing.List[CalendarRowType]:
71 return [typing.cast('CalendarRowType', tuple(r)) for r in csv.reader(f)]
169 …def write_existing(writer: _csv._writer, current: typing.List[CalendarRowType]) -> typing.Iterator…
177 last_row: typing.Optional[CalendarRowType] = None
192 row = typing.cast('CalendarRowType', tuple(r))
Dgen_release_notes.py32 import typing
185 async def parse_issues(commits: str) -> typing.List[str]:
186 issues: typing.List[str] = []
209 async def gather_bugs(version: str) -> typing.List[str]:
216 typing.cast(typing.Tuple[str, ...], results)
243 def walk_shortlog(log: str) -> typing.Generator[typing.Tuple[str, bool], None, None]:
283 def get_features(is_point_release: bool) -> typing.Generator[str, None, None]:
Dgen_calendar_entries_test.py33 import typing
41 def mock_csv(data: typing.List[gen_calendar_entries.CalendarRowType]) -> typing.Iterator[None]:
84 def _patch_date(date: datetime.date) -> typing.Iterator[None]:
271 def _patch_date(self) -> typing.Iterator[None]:
/third_party/libinput/doc/user/
Dpalm-detection.rst7 Palm detection tries to identify accidental touches while typing, while
10 On most laptops typing on the keyboard generates accidental touches on the
29 - :ref:`disable-while-typing`
33 disable-while-typing.
57 pressure changes as the user is typing.
133 .. _disable-while-typing:
136 Disable-while-typing
140 press, a feature traditionally referred to as "disable while typing" and
147 Notable behaviors of libinput's disable-while-typing feature:
151 longer to avoid accidental pointer manipulation while typing.
[all …]
/third_party/jinja2/
Dtox.ini5 typing
18 [testenv:typing]
19 deps = -r requirements/typing.txt argument
/third_party/markupsafe/
Dtox.ini5 typing
18 [testenv:typing]
19 deps = -r requirements/typing.txt argument
D_speedups.pyi1 from typing import Any
2 from typing import Optional
/third_party/typescript/src/typingsInstallerCore/
DtypingsInstaller.ts280 return mapDefined(typingsToInstall, typing => {
281 const typingKey = mangleScopedPackageName(typing);
283 …if (this.log.isEnabled()) this.log.writeLine(`'${typing}':: '${typingKey}' is in missingTypingsSet…
286 const validationResult = JsTyping.validatePackageName(typing);
290 …abled()) this.log.writeLine(JsTyping.renderPackageNameValidationFailure(validationResult, typing));
294 …if (this.log.isEnabled()) this.log.writeLine(`'${typing}':: Entry for package '${typingKey}' does …
298 …if (this.log.isEnabled()) this.log.writeLine(`'${typing}':: '${typingKey}' already has an up-to-da…
354 for (const typing of filteredTypings) { constant
355 this.missingTypingsSet.add(typing);
/third_party/mbedtls/scripts/
Dmin_requirements.py26 import typing
28 from typing import List, Optional
32 _list: List[typing.Any],
/third_party/python/Lib/test/test_importlib/
Dtest_files.py1 import typing
22 hasattr(typing, 'runtime_checkable'),

12345678910>>...16