Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for getsourcefile (0.04 sec)

  1. fastapi/routing.py

        func_id = id(func)
    
        if func_id in _endpoint_context_cache:
            return _endpoint_context_cache[func_id]
    
        try:
            ctx: EndpointContext = {}
    
            if (source_file := inspect.getsourcefile(func)) is not None:
                ctx["file"] = source_file
            if (line_number := inspect.getsourcelines(func)[1]) is not None:
                ctx["line"] = line_number
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 174.6K bytes
    - Viewed (0)
Back to top