Search Options

Results per page
Sort
Preferred Languages
Advance

Results 501 - 510 of 4,225 for None (0.05 sec)

  1. tests/test_forms_single_model.py

    from pydantic import BaseModel, Field
    from typing_extensions import Annotated
    
    app = FastAPI()
    
    
    class FormModel(BaseModel):
        username: str
        lastname: str
        age: Optional[int] = None
        tags: List[str] = ["foo", "bar"]
        alias_with: str = Field(alias="with", default="nothing")
    
    
    @app.post("/form/")
    def post_form(user: Annotated[FormModel, Form()]):
        return user
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Sep 13 09:51:00 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. istioctl/pkg/checkinject/testdata/check-inject/never-match-injector.yaml

        rules:
          - apiGroups:
              - ""
            apiVersions:
              - v1
            operations:
              - CREATE
            resources:
              - pods
            scope: '*'
        sideEffects: None
        timeoutSeconds: 10
      - admissionReviewVersions:
          - v1beta1
          - v1
        clientConfig:
          service:
            name: istiod
            namespace: istio-system
            path: /inject
            port: 443
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Jun 15 15:02:17 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  3. docs/em/docs/python-types.md

    đŸ‘¯â€â™‚ī¸ đŸ’ŧ 👉 ⛓ 👈 `item` đŸ’Ē `int` ⚖ī¸ `str`.
    
    #### 🎲 `None`
    
    👆 đŸ’Ē đŸ“Ŗ 👈 💲 đŸ’Ē ✔ī¸ 🆎, 💖 `str`, ✋ī¸ 👈 âšĢī¸ đŸ’Ē `None`.
    
    🐍 3ī¸âƒŖ.6ī¸âƒŖ & 🔛 (✅ 🐍 3ī¸âƒŖ.1ī¸âƒŖ0ī¸âƒŖ) 👆 đŸ’Ē đŸ“Ŗ âšĢī¸ 🏭 & ⚙ī¸ `Optional` âšĒī¸âžĄī¸ `typing` 🕹.
    
    ```Python hl_lines="1  4"
    {!../../docs_src/python_types/tutorial009.py!}
    ```
    
    ⚙ī¸ `Optional[str]` ↩ī¸ `str` 🔜 ➡ī¸ 👨‍🎨 ℹ 👆 🔍 ❌ 🌐❔ 👆 đŸ’Ē 🤔 👈 💲 🕧 `str`, 🕐❔ âšĢī¸ đŸ’Ē 🤙 `None` 💁‍♂ī¸.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  4. docs_src/sql_databases_peewee/sql_app/schemas.py

    
    class PeeweeGetterDict(GetterDict):
        def get(self, key: Any, default: Any = None):
            res = getattr(self._obj, key, default)
            if isinstance(res, peewee.ModelSelect):
                return list(res)
            return res
    
    
    class ItemBase(BaseModel):
        title: str
        description: Union[str, None] = None
    
    
    class ItemCreate(ItemBase):
        pass
    
    
    class Item(ItemBase):
        id: int
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 868 bytes
    - Viewed (0)
  5. docs/en/docs/img/deployment/https/https01.drawio

                        <mxGeometry width="500" height="350" as="geometry"/>
                    </mxCell>
                    <mxCell id="90" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;dashed=1;startArrow=none;startFill=0;endArrow=classic;endFill=1;strokeWidth=3;" parent="1" source="101" target="32" edge="1">
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu May 12 00:06:16 UTC 2022
    - 6.2K bytes
    - Viewed (0)
  6. docs_src/extra_data_types/tutorial001_an_py39.py

    async def read_items(
        item_id: UUID,
        start_datetime: Annotated[datetime, Body()],
        end_datetime: Annotated[datetime, Body()],
        process_after: Annotated[timedelta, Body()],
        repeat_at: Annotated[Union[time, None], Body()] = None,
    ):
        start_process = start_datetime + process_after
        duration = end_datetime - start_process
        return {
            "item_id": item_id,
            "start_datetime": start_datetime,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Apr 19 00:11:40 UTC 2024
    - 801 bytes
    - Viewed (0)
  7. bin/diff_yaml.py

        j1 = normalize(list(yaml.safe_load_all(open(args.new))), args)
    
        q0 = {by_resource_name(res): res for res in j0 if res is not None}
        q1 = {by_resource_name(res): res for res in j1 if res is not None}
    
        added, removed, common = keydiff(q0.keys(), q1.keys())
    
        changed = 0
        for k in sorted(common):
            if q0[k] != q1[k]:
                changed += 1
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Mar 03 16:14:57 UTC 2021
    - 4.5K bytes
    - Viewed (0)
  8. cmd/object-handlers-common_test.go

    		expectedCode      int
    	}{
    		// If-None-Match(false) and If-Modified-Since(true)
    		{
    			name:            "If-None-Match1",
    			ifNoneMatch:     "aa",
    			ifModifiedSince: "Sun, 26 Aug 2024 02:01:00 GMT",
    			objInfo:         objInfo,
    			expectedFlag:    true,
    			expectedCode:    304,
    		},
    		// If-Modified-Since(false)
    		{
    			name:            "If-None-Match2",
    			ifNoneMatch:     "aaa",
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 03 06:33:53 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  9. docs_src/additional_responses/tutorial002.py

        responses={
            200: {
                "content": {"image/png": {}},
                "description": "Return the JSON item or an image.",
            }
        },
    )
    async def read_item(item_id: str, img: Union[bool, None] = None):
        if img:
            return FileResponse("image.png", media_type="image/png")
        else:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 628 bytes
    - Viewed (0)
  10. tests/test_param_class.py

    app = FastAPI()
    
    
    @app.get("/items/")
    def read_items(q: Optional[str] = Param(default=None)):  # type: ignore
        return {"q": q}
    
    
    client = TestClient(app)
    
    
    def test_default_param_query_none():
        response = client.get("/items/")
        assert response.status_code == 200, response.text
        assert response.json() == {"q": None}
    
    
    def test_default_param_query():
        response = client.get("/items/?q=foo")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri May 13 23:38:22 UTC 2022
    - 636 bytes
    - Viewed (0)
Back to top