Searched refs:get_annotations (Results 1 – 7 of 7) sorted by relevance
/third_party/python/Lib/test/ |
D | test_inspect.py | 1309 self.assertEqual(inspect.get_annotations(foo), {'a': int, 'b': str}) 1312 self.assertEqual(inspect.get_annotations(foo), {'a': 'foo', 'b': 'str'}) 1314 …self.assertEqual(inspect.get_annotations(foo, eval_str=True, locals=locals()), {'a': foo, 'b': str… 1315 …self.assertEqual(inspect.get_annotations(foo, eval_str=True, globals=locals()), {'a': foo, 'b': st… 1318 self.assertEqual(inspect.get_annotations(isa), {'a': int, 'b': str}) 1319 self.assertEqual(inspect.get_annotations(isa.MyClass), {'a': int, 'b': str}) 1320 …self.assertEqual(inspect.get_annotations(isa.function), {'a': int, 'b': str, 'return': isa.MyClass… 1321 …self.assertEqual(inspect.get_annotations(isa.function2), {'a': int, 'b': 'str', 'c': isa.MyClass, … 1322 … self.assertEqual(inspect.get_annotations(isa.function3), {'a': 'int', 'b': 'str', 'c': 'MyClass'}) 1323 self.assertEqual(inspect.get_annotations(inspect), {}) # inspect module has no annotations [all …]
|
/third_party/python/Doc/howto/ |
D | annotations.rst | 36 :func:`inspect.get_annotations`. In Python versions 3.10 42 If for some reason :func:`inspect.get_annotations` isn't 72 :func:`inspect.get_annotations`: you should use three-argument 128 call :func:`inspect.get_annotations` to do this work 132 you can't use :func:`inspect.get_annotations`, you'll need 134 implementation of :func:`inspect.get_annotations` in the
|
/third_party/flutter/skia/src/pdf/ |
D | SkPDFDocument.cpp | 279 static std::unique_ptr<SkPDFArray> get_annotations( in get_annotations() function 344 get_annotations(this, fCurrentPageLinkToURLs, fCurrentPageLinkToDestinations)) { in onEndPage()
|
/third_party/python/Doc/library/ |
D | inspect.rst | 590 :func:`inspect.get_annotations()`. The 592 into :func:`inspect.get_annotations()` when resolving the 593 annotations; see the documentation for :func:`inspect.get_annotations()` 1121 .. function:: get_annotations(obj, *, globals=None, locals=None, eval_str=False) 1128 Returns a dict. ``get_annotations()`` returns a new dict every time 1152 (Note that ``get_annotations`` doesn't catch exceptions; if :func:`eval()` 1153 raises an exception, it will unwind the stack past the ``get_annotations`` 1170 Calling ``get_annotations`` is best practice for accessing the
|
/third_party/python/Misc/NEWS.d/ |
D | 3.10.0b1.rst | 644 Add :func:`inspect.get_annotations`, which safely computes the annotations 647 about the object passed in. :func:`inspect.get_annotations` can also 651 :func:`inspect.from_function` now call :func:`inspect.get_annotations` to
|
/third_party/python/Lib/ |
D | inspect.py | 66 def get_annotations(obj, *, globals=None, locals=None, eval_str=False): function 2303 annotations = get_annotations(func, globals=globals, locals=locals, eval_str=eval_str)
|
/third_party/python/Doc/whatsnew/ |
D | 3.10.rst | 1190 Add :func:`inspect.get_annotations`, which safely computes the annotations 1193 it examines. :func:`inspect.get_annotations` can also correctly un-stringize 1194 stringized annotations. :func:`inspect.get_annotations` is now considered 1200 now call :func:`inspect.get_annotations` to retrieve annotations. This means
|