def __get_caller_frame()

in testslide/strict_mock.py [0:0]


    def __get_caller_frame(self, depth: int) -> FrameType:
        # Adding extra 3 to account for the stack:
        #   __get_caller_frame
        #   __get_caller
        #   __init__
        depth += 3
        current_frame = inspect.currentframe()
        while current_frame:
            depth -= 1
            if not depth:
                break

            current_frame = current_frame.f_back

        return current_frame  # type: ignore