A wrapper around inspect.signature that leaves deferred annotations unevaluated on Python 3.14+, since they are not used in our case.
(obj)
| 141 | |
| 142 | |
| 143 | def signature(obj): |
| 144 | """ |
| 145 | A wrapper around inspect.signature that leaves deferred annotations |
| 146 | unevaluated on Python 3.14+, since they are not used in our case. |
| 147 | """ |
| 148 | if PY314: |
| 149 | return inspect.signature(obj, annotation_format=annotationlib.Format.FORWARDREF) |
| 150 | else: |
| 151 | return inspect.signature(obj) |
no test coverage detected