Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for inspector (0.28 sec)

  1. fastapi/openapi/utils.py

                    # explicit default status_code, and to extract it from them, instead of
                    # doing this inspection tricks, that would probably be in the future
                    # TODO: probably make status_code a default class attribute for all
                    # responses in Starlette
                    response_signature = inspect.signature(current_response_class.__init__)
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 21.8K bytes
    - Viewed (0)
  2. fastapi/dependencies/utils.py

        if inspect.isroutine(call):
            return inspect.iscoroutinefunction(call)
        if inspect.isclass(call):
            return False
        dunder_call = getattr(call, "__call__", None)  # noqa: B004
        return inspect.iscoroutinefunction(dunder_call)
    
    
    def is_async_gen_callable(call: Callable[..., Any]) -> bool:
        if inspect.isasyncgenfunction(call):
            return True
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:52:56 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  3. tests/test_local_docs.py

    import inspect
    
    from fastapi.openapi.docs import get_redoc_html, get_swagger_ui_html
    
    
    def test_strings_in_generated_swagger():
        sig = inspect.signature(get_swagger_ui_html)
        swagger_js_url = sig.parameters.get("swagger_js_url").default  # type: ignore
        swagger_css_url = sig.parameters.get("swagger_css_url").default  # type: ignore
        swagger_favicon_url = sig.parameters.get("swagger_favicon_url").default  # type: ignore
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Dec 20 18:50:00 GMT 2020
    - 2.4K bytes
    - Viewed (0)
  4. tensorflow/api_template_v1.__init__.py

    # ==============================================================================
    """Bring in all of the public TensorFlow interface into this module."""
    
    import distutils as _distutils
    import importlib
    import inspect as _inspect
    import os as _os
    import site as _site
    import sys as _sys
    
    # pylint: disable=g-bad-import-order,protected-access,g-import-not-at-top
    from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Jan 23 02:14:00 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  5. tests/test_operations_signatures.py

    import inspect
    
    from fastapi import APIRouter, FastAPI
    
    method_names = ["get", "put", "post", "delete", "options", "head", "patch", "trace"]
    
    
    def test_signatures_consistency():
        base_sig = inspect.signature(APIRouter.get)
        for method_name in method_names:
            router_method = getattr(APIRouter, method_name)
            app_method = getattr(FastAPI, method_name)
            router_sig = inspect.signature(router_method)
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon May 27 12:08:13 GMT 2019
    - 934 bytes
    - Viewed (0)
  6. tensorflow/api_template.__init__.py

    """
    # pylint: disable=g-bad-import-order,protected-access,g-import-not-at-top
    
    import distutils as _distutils
    import importlib
    import inspect as _inspect
    import os as _os
    import site as _site
    import sys as _sys
    
    # Do not remove this line; See https://github.com/tensorflow/tensorflow/issues/42596
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 05 06:27:59 GMT 2024
    - 6.7K bytes
    - Viewed (3)
  7. fastapi/routing.py

    import asyncio
    import dataclasses
    import email.message
    import inspect
    import json
    from contextlib import AsyncExitStack
    from enum import Enum, IntEnum
    from typing import (
        Any,
        Callable,
        Coroutine,
        Dict,
        List,
        Optional,
        Sequence,
        Set,
        Tuple,
        Type,
        Union,
    )
    
    from fastapi import params
    from fastapi._compat import (
        ModelField,
        Undefined,
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 170.1K bytes
    - Viewed (0)
Back to top