Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 191 - 200 of 290 for unionOf (0.1 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. fastapi/exceptions.py

    from collections.abc import Sequence
    from typing import Annotated, Any, Optional, TypedDict, Union
    
    from annotated_doc import Doc
    from pydantic import BaseModel, create_model
    from starlette.exceptions import HTTPException as StarletteHTTPException
    from starlette.exceptions import WebSocketException as StarletteWebSocketException
    
    
    class EndpointContext(TypedDict, total=False):
        function: str
        path: str
        file: str
        line: int
    
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 6.8K bytes
    - Click Count (0)
  2. docs/ja/docs/tutorial/extra-models.md

    このようにして、モデル間の違いだけを宣言することができます:
    
    {* ../../docs_src/extra_models/tutorial002.py hl[9,15,16,19,20,23,24] *}
    
    ## `Union`または`anyOf`
    
    レスポンスを2つの型の`Union`として宣言することができます。
    
    OpenAPIでは`anyOf`で定義されます。
    
    そのためには、標準的なPythonの型ヒント<a href="https://docs.python.org/3/library/typing.html#typing.Union" class="external-link" target="_blank">`typing.Union`</a>を使用します:
    
    {* ../../docs_src/extra_models/tutorial003.py hl[1,14,15,18,19,20,33] *}
    
    ## モデルのリスト
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 6.6K bytes
    - Click Count (0)
  3. fastapi/security/api_key.py

            scheme_name: Union[str, None],
            auto_error: bool,
        ):
            self.auto_error = auto_error
    
            self.model: APIKey = APIKey(
                **{"in": location},
                name=name,
                description=description,
            )
            self.scheme_name = scheme_name or self.__class__.__name__
    
        def make_not_authenticated_error(self) -> HTTPException:
            """
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 9.6K bytes
    - Click Count (1)
  4. README.md

    ## Example
    
    ### Create it
    
    Create a file `main.py` with:
    
    ```Python
    from typing import Union
    
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    def read_item(item_id: int, q: Union[str, None] = None):
        return {"item_id": item_id, "q": q}
    ```
    
    <details markdown="1">
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Thu Dec 25 11:01:37 GMT 2025
    - 26.4K bytes
    - Click Count (0)
  5. guava/src/com/google/common/graph/AbstractDirectedNetworkConnections.java

        this.selfLoopCount = checkNonNegative(selfLoopCount);
        checkState(selfLoopCount <= inEdgeMap.size() && selfLoopCount <= outEdgeMap.size());
      }
    
      @Override
      public Set<N> adjacentNodes() {
        return Sets.union(predecessors(), successors());
      }
    
      @Override
      public Set<E> incidentEdges() {
        return new AbstractSet<E>() {
          @Override
          public UnmodifiableIterator<E> iterator() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 4.5K bytes
    - Click Count (0)
  6. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/scopes/Maven4ScopeManagerConfiguration.java

    import static org.eclipse.aether.impl.scope.BuildScopeQuery.select;
    import static org.eclipse.aether.impl.scope.BuildScopeQuery.singleton;
    import static org.eclipse.aether.impl.scope.BuildScopeQuery.union;
    
    /**
     * Maven4 scope configurations. Configures scope manager to support Maven4 scopes.
     * <p>
     * This manager supports all the new Maven 4 dependency scopes defined in {@link DependencyScope}.
     *
     * @since 2.0.0
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 9.2K bytes
    - Click Count (0)
  7. src/main/java/jcifs/dcerpc/msrpc/netdfs.idl

    	typedef struct {
    		uint32_t flags;
    		[string] wchar_t *dfs_name;
    	} DfsInfo300;
    
    	typedef struct {
    		uint32_t count;
    		[size_is(count)] DfsInfo300 *s;
    	} DfsEnumArray300;
    
    	typedef union {
    		[case(1)] DfsEnumArray1 *info1;
    		[case(3)] DfsEnumArray3 *info3;
    		[case(200)] DfsEnumArray200 *info200;
    		[case(300)] DfsEnumArray300 *info300;
    	} DfsEnumInfo;
    
    	typedef struct {
    		uint32_t level,
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 1.7K bytes
    - Click Count (0)
  8. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/scopes/Maven3ScopeManagerConfiguration.java

    import static org.eclipse.aether.impl.scope.BuildScopeQuery.select;
    import static org.eclipse.aether.impl.scope.BuildScopeQuery.singleton;
    import static org.eclipse.aether.impl.scope.BuildScopeQuery.union;
    
    /**
     * Maven3 scope configurations. Configures scope manager to support Maven3 scopes.
     * <p>
     * This manager supports the old Maven 3 dependency scopes.
     *
     * @since 2.0.0
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 7.7K bytes
    - Click Count (0)
  9. docs/en/docs/index.md

    ### Create it { #create-it }
    
    Create a file `main.py` with:
    
    ```Python
    from typing import Union
    
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    def read_item(item_id: int, q: Union[str, None] = None):
        return {"item_id": item_id, "q": q}
    ```
    
    <details markdown="1">
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Thu Dec 25 11:01:37 GMT 2025
    - 23.5K bytes
    - Click Count (0)
  10. docs/de/docs/tutorial/response-model.md

    Das gleiche wird passieren, wenn Sie eine <abbr title="Eine Union mehrerer Typen bedeutet: „Irgendeiner dieser Typen“">Union</abbr> mehrerer Typen haben, und einer oder mehrere sind nicht gültige Pydantic-Typen. Zum Beispiel funktioniert folgendes nicht 💥:
    
    {* ../../docs_src/response_model/tutorial003_04_py310.py hl[8] *}
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 24 10:28:19 GMT 2025
    - 17.5K bytes
    - Click Count (0)
Back to Top