Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1121 - 1130 of 3,776 for nope (0.04 sec)

  1. docs/de/docs/index.md

    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: float
        is_offer: Union[bool, None] = None
    
    
    @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}
    
    
    @app.put("/items/{item_id}")
    def update_item(item_id: int, item: Item):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 20 19:20:23 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  2. compat/maven-resolver-provider/src/site/apt/dependency-types.apt

    | <<<pom>>>             |               | <= type>   | none      |                       |                       |
    *-----------------------+---------------+------------+-----------+-----------------------+-----------------------+
    | <<<bom>>> *           |               | <<<pom>>>  | none      |                       |                       |
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/SubMapMultimapAsMapImplementsMapTest.java

          // GWT's TreeMap.entrySet().removeAll(null) doesn't throws NPE.
        }
      }
    
      @Override
      public void testEntrySetRetainAllNullFromEmpty() {
        try {
          super.testEntrySetRetainAllNullFromEmpty();
        } catch (RuntimeException tolerated) {
          // GWT's TreeMap.entrySet().retainAll(null) doesn't throws NPE.
        }
      }
    
      @Override
      public void testKeySetRemoveAllNullFromEmpty() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_cookie_param_models/test_tutorial001.py

            c.cookies.set("session_id", "123")
            response = c.get("/items/")
        assert response.status_code == 200
        assert response.json() == {
            "session_id": "123",
            "fatebook_tracker": None,
            "googall_tracker": None,
        }
    
    
    def test_cookie_param_model_invalid(client: TestClient):
        response = client.get("/items/")
        assert response.status_code == 422
        assert response.json() == snapshot(
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  5. tests/test_additional_properties_bool.py

        else:
    
            class Config:
                extra = "forbid"
    
    
    class Foo(FooBaseModel):
        pass
    
    
    app = FastAPI()
    
    
    @app.post("/")
    async def post(
        foo: Union[Foo, None] = None,
    ):
        return foo
    
    
    client = TestClient(app)
    
    
    def test_call_invalid():
        response = client.post("/", json={"foo": {"bar": "baz"}})
        assert response.status_code == 422
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  6. tests/test_read_with_orm_mode.py

    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    from pydantic import BaseModel, ConfigDict
    
    from .utils import needs_pydanticv1, needs_pydanticv2
    
    
    @needs_pydanticv2
    def test_read_with_orm_mode() -> None:
        class PersonBase(BaseModel):
            name: str
            lastname: str
    
        class Person(PersonBase):
            @property
            def full_name(self) -> str:
                return f"{self.name} {self.lastname}"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/Interner.java

    import com.google.errorprone.annotations.DoNotMock;
    
    /**
     * Provides similar behavior to {@link String#intern} for any immutable type. Common implementations
     * are available from the {@link Interners} class.
     *
     * <p>Note that {@code String.intern()} has some well-known performance limitations, and should
     * generally be avoided. Prefer {@link Interners#newWeakInterner} or another {@code Interner}
     * implementation even for {@code String} interning.
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 13 14:30:51 UTC 2023
    - 2K bytes
    - Viewed (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/VersionRange.java

         */
        boolean contains(@Nonnull Version version);
    
        /**
         * Returns the upper boundary of this range, or {@code null} if none.
         */
        @Nullable
        Boundary getUpperBoundary();
    
        /**
         * Returns the lower boundary of this range, or {@code null} if none.
         */
        @Nullable
        Boundary getLowerBoundary();
    
        /**
         * Returns a string representation of this version range
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Tue Aug 27 21:13:34 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  9. compat/maven-toolchain-builder/src/main/java/org/apache/maven/toolchain/building/ToolchainsBuildingRequest.java

     */
    @Deprecated(since = "4.0.0")
    public interface ToolchainsBuildingRequest {
    
        /**
         * Gets the global toolchains source.
         *
         * @return The global toolchains source or {@code null} if none.
         */
        Source getGlobalToolchainsSource();
    
        /**
         * Sets the global toolchains source. If both user toolchains and a global toolchains are given, the user toolchains
         * take precedence.
         *
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_cookie_params/test_tutorial001_an.py

        [
            ("/items", None, 200, {"ads_id": None}),
            ("/items", {"ads_id": "ads_track"}, 200, {"ads_id": "ads_track"}),
            (
                "/items",
                {"ads_id": "ads_track", "session": "cookiesession"},
                200,
                {"ads_id": "ads_track"},
            ),
            ("/items", {"session": "cookiesession"}, 200, {"ads_id": None}),
        ],
    )
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 3.9K bytes
    - Viewed (0)
Back to top