Called for functools._SingleDispatchCallable.__call__
(ctx: MethodSigContext)
| 204 | |
| 205 | |
| 206 | def call_singledispatch_function_callback(ctx: MethodSigContext) -> FunctionLike: |
| 207 | """Called for functools._SingleDispatchCallable.__call__""" |
| 208 | if not isinstance(ctx.type, Instance): |
| 209 | return ctx.default_signature |
| 210 | metadata = get_singledispatch_info(ctx.type) |
| 211 | if metadata is None: |
| 212 | return ctx.default_signature |
| 213 | return metadata.fallback |
nothing calls this directly
no test coverage detected
searching dependent graphs…