Home
last modified time | relevance | path

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

/external/python/funcsigs/funcsigs/
D__init__.py474 def __init__(self, parameters=None, return_annotation=_empty, argument
510 self._return_annotation = return_annotation
582 return_annotation=annotations.get('return', _empty),
593 def return_annotation(self): member in Signature
596 def replace(self, parameters=_void, return_annotation=_void): argument
605 if return_annotation is _void:
606 return_annotation = self._return_annotation
609 return_annotation=return_annotation)
617 self.return_annotation != other.return_annotation or
814 if self.return_annotation is not _empty:
[all …]
/external/python/funcsigs/tests/
Dtest_funcsigs.py25 (Ellipsis if sig.return_annotation is sig.empty
26 else sig.return_annotation))
Dtest_inspect.py24 (Ellipsis if sig.return_annotation is sig.empty
25 else sig.return_annotation))
/external/python/cpython3/Lib/
Dinspect.py1143 if sig.return_annotation is not sig.empty:
1144 annotations['return'] = sig.return_annotation
2098 return cls(parameters, return_annotation=cls.empty)
2194 return_annotation=annotations.get('return', _empty),
2750 def __init__(self, parameters=None, *, return_annotation=_empty, argument
2803 self._return_annotation = return_annotation
2840 def return_annotation(self): member in Signature
2843 def replace(self, *, parameters=_void, return_annotation=_void): argument
2852 if return_annotation is _void:
2853 return_annotation = self._return_annotation
[all …]
Ddataclasses.py376 return_annotation = ''
379 return_annotation = '->_return_type'
/external/python/funcsigs/docs/
Dindex.rst107 .. attribute:: Signature.return_annotation
125 .. method:: Signature.replace(*[, parameters][, return_annotation])
129 ``return_annotation`` to override the corresponding properties of the base
130 signature. To remove return_annotation from the copied Signature, pass in
138 >>> new_sig = sig.replace(return_annotation="new return anno")
/external/python/cpython3/Lib/test/
Dtest_inspect.py1950 (... if sig.return_annotation is sig.empty
1951 else sig.return_annotation))
2016 return_annotation=sig.return_annotation)
2946 hash(manual_sig.replace(return_annotation='spam')))
3007 sig = sig.replace(return_annotation=None)
3008 self.assertIs(sig.return_annotation, None)
3009 sig = sig.replace(return_annotation=sig.empty)
3010 self.assertIs(sig.return_annotation, sig.empty)
3011 sig = sig.replace(return_annotation=42)
3012 self.assertEqual(sig.return_annotation, 42)
Dtest_dataclasses.py750 self.assertIs(signature.return_annotation, None)
/external/python/cpython3/Doc/library/
Dinspect.rst578 .. class:: Signature(parameters=None, \*, return_annotation=Signature.empty)
590 The optional *return_annotation* argument, can be an arbitrary Python object,
614 .. attribute:: Signature.return_annotation
632 .. method:: Signature.replace(*[, parameters][, return_annotation])
636 ``return_annotation`` to override the corresponding properties of the base
637 signature. To remove return_annotation from the copied Signature, pass in
645 >>> new_sig = sig.replace(return_annotation="new return anno")
/external/python/cpython3/Tools/clinic/
Dclinic.py2075 return_converter, return_annotation=_empty, argument
2079 self.return_annotation = return_annotation
2133 'return_converter': self.return_converter, 'return_annotation': self.return_annotation,