HomeSort by: relevance | last modified time | path
    Searched defs:typing (Results 1 - 2 of 2) sorted by relevancy

  /src/external/gpl3/gdb/dist/gdb/python/lib/gdb/dap/
typecheck.py 20 import typing namespace
26 base = typing.get_origin(typevar)
29 arg_types = typing.get_args(typevar)
30 if base == collections.abc.Mapping or base == typing.Mapping:
39 elif base == collections.abc.Sequence or base == typing.Sequence:
48 elif base == typing.Union:
56 # The type checker relies on 'typing.get_origin', which was added
57 # in Python 3.8. (It also relies on 'typing.get_args', but that
59 if not hasattr(typing, "get_origin"):
62 hints = typing.get_type_hints(func
    [all...]
  /src/external/gpl3/gdb/dist/gdb/testsuite/gdb.dap/
type_check.py 18 import typing namespace
52 def sequence_type(*, s: typing.Sequence[str]):
66 def map_type(*, m: typing.Mapping[str, int]):
79 def opt_type(*, u: typing.Optional[int]):
91 if hasattr(typing, "get_origin"):

Completed in 15 milliseconds