Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 2,153 for anys (0.02 seconds)

  1. fastapi/openapi/utils.py

        field_mapping: dict[
            tuple[ModelField, Literal["validation", "serialization"]], dict[str, Any]
        ],
        separate_input_output_schemas: bool = True,
    ) -> tuple[dict[str, Any], dict[str, Any], dict[str, Any]]:
        path = {}
        security_schemes: dict[str, Any] = {}
        definitions: dict[str, Any] = {}
        assert route.methods is not None, "Methods must be a list"
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 25.6K bytes
    - Click Count (0)
  2. fastapi/encoders.py

        set: list,
        UUID: str,
        Url: str,
        AnyUrl: str,
    }
    
    
    def generate_encoders_by_class_tuples(
        type_encoder_map: dict[Any, Callable[[Any], Any]],
    ) -> dict[Callable[[Any], Any], tuple[Any, ...]]:
        encoders_by_class_tuples: dict[Callable[[Any], Any], tuple[Any, ...]] = defaultdict(
            tuple
        )
        for type_, encoder in type_encoder_map.items():
            encoders_by_class_tuples[encoder] += (type_,)
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 10.9K bytes
    - Click Count (0)
  3. .github/labeler.yml

    docs:
      - all:
        - changed-files:
          - any-glob-to-any-file:
            - docs/en/docs/**
            - docs_src/**
          - all-globs-to-all-files:
            - '!fastapi/**'
            - '!pyproject.toml'
            - '!docs/en/data/sponsors.yml'
            - '!docs/en/overrides/main.html'
    
    lang-all:
      - all:
        - changed-files:
          - any-glob-to-any-file:
            - docs/*/docs/**
          - all-globs-to-all-files:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 21 16:26:38 GMT 2026
    - 888 bytes
    - Click Count (0)
  4. fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/client/FesenClientTest.java

            when(mockSearchBuilder.setScroll(any(Scroll.class))).thenReturn(mockSearchBuilder);
            when(mockSearchBuilder.setSize(10)).thenReturn(mockSearchBuilder);
            when(mockSearchBuilder.setQuery(any())).thenReturn(mockSearchBuilder);
            when(mockSearchBuilder.execute()).thenReturn(mockSearchFuture);
            when(mockSearchFuture.actionGet(anyLong(), any(TimeUnit.class))).thenReturn(mockSearchResponse);
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Mon Jan 12 06:25:38 GMT 2026
    - 16.9K bytes
    - Click Count (0)
  5. tests/test_dependency_after_yield_streaming.py

    
    @app.get("/data")
    def get_data(session: SessionDep) -> Any:
        data = list(session)
        return data
    
    
    @app.get("/stream-simple")
    def get_stream_simple(session: SessionDep) -> Any:
        def iter_data():
            yield from ["x", "y", "z"]
    
        return StreamingResponse(iter_data())
    
    
    @app.get("/stream-session")
    def get_stream_session(session: SessionDep) -> Any:
        def iter_data():
            yield from session
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  6. fastapi/exceptions.py

            self,
            errors: Sequence[Any],
            *,
            body: Any = None,
            endpoint_ctx: EndpointContext | None = None,
        ) -> None:
            super().__init__(errors, endpoint_ctx=endpoint_ctx)
            self.body = body
    
    
    class WebSocketRequestValidationError(ValidationException):
        def __init__(
            self,
            errors: Sequence[Any],
            *,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 11 18:41:21 GMT 2026
    - 7.3K bytes
    - Click Count (0)
  7. docs/en/docs/advanced/strict-content-type.md

    * don't have a `Content-Type` header (e.g. using `fetch()` with a `Blob` body)
    * and don't send any authentication credentials.
    
    This type of attack is mainly relevant when:
    
    * the application is running locally (e.g. on `localhost`) or in an internal network
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Feb 23 17:45:20 GMT 2026
    - 3.2K bytes
    - Click Count (0)
  8. fastapi/_compat/shared.py

        tuple: tuple,
        set: set,
        frozenset: frozenset,
        deque: deque,
    }
    
    sequence_types: tuple[type[Any], ...] = tuple(sequence_annotation_to_type.keys())
    
    
    # Copy of Pydantic: pydantic/_internal/_utils.py with added TypeGuard
    def lenient_issubclass(
        cls: Any, class_or_tuple: type[_T] | tuple[type[_T], ...] | None
    ) -> TypeGuard[type[_T]]:
        try:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 11 18:32:12 GMT 2026
    - 6.9K bytes
    - Click Count (0)
  9. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingConnectionListener.kt

      private val forbiddenLocks = mutableSetOf<Any>()
    
      /** The timestamp of the last taken event, used to measure elapsed time between events. */
      private var lastTimestampNs: Long? = null
    
      /** Confirm that the thread does not hold a lock on `lock` during the callback. */
      fun forbidLock(lock: Any) {
        forbiddenLocks.add(lock)
      }
    
      /**
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 5.8K bytes
    - Click Count (0)
  10. docs/en/docs/advanced/response-directly.md

    You can return a `Response` or any sub-class of it.
    
    /// info
    
    `JSONResponse` itself is a sub-class of `Response`.
    
    ///
    
    And when you return a `Response`, **FastAPI** will pass it directly.
    
    It won't do any data conversion with Pydantic models, it won't convert the contents to any type, etc.
    
    This gives you a lot of **flexibility**. You can return any data type, override any data declaration or validation, etc.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 4K bytes
    - Click Count (0)
Back to Top