Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 481 - 490 of 1,728 for FieldD (0.05 seconds)

  1. docs/tr/docs/advanced/events.md

    ///
    
    ### Lifespan fonksiyonu { #lifespan-function }
    
    Dikkat edilmesi gereken ilk şey, `yield` içeren async bir fonksiyon tanımlıyor olmamız. Bu, `yield` kullanan Dependencies’e oldukça benzer.
    
    {* ../../docs_src/events/tutorial003_py310.py hl[14:19] *}
    
    Fonksiyonun `yield`’den önceki kısmı, uygulama başlamadan **önce** çalışır.
    
    `yield`’den sonraki kısım ise, uygulama işini bitirdikten **sonra** çalışır.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 8.3K bytes
    - Click Count (0)
  2. tests/test_dependency_after_yield_websockets.py

                if self.open:
                    yield item
                else:
                    raise ValueError("Session closed")
    
    
    @contextmanager
    def acquire_session() -> Generator[Session, None, None]:
        session = Session()
        try:
            yield session
        finally:
            session.open = False
    
    
    def dep_session() -> Any:
        with acquire_session() as s:
            yield s
    
    
    def broken_dep_session() -> Any:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 2K bytes
    - Click Count (0)
  3. docs_src/query_param_models/tutorial002_an_py310.py

    from typing import Annotated, Literal
    
    from fastapi import FastAPI, Query
    from pydantic import BaseModel, Field
    
    app = FastAPI()
    
    
    class FilterParams(BaseModel):
        model_config = {"extra": "forbid"}
    
        limit: int = Field(100, gt=0, le=100)
        offset: int = Field(0, ge=0)
        order_by: Literal["created_at", "updated_at"] = "created_at"
        tags: list[str] = []
    
    
    @app.get("/items/")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Sep 17 18:54:10 GMT 2024
    - 483 bytes
    - Click Count (0)
  4. tests/test_tutorial/test_body_multiple_params/test_tutorial004.py

                        "body",
                        "item",
                    ],
                    "msg": "Field required",
                    "type": "missing",
                },
                {
                    "input": None,
                    "loc": [
                        "body",
                        "user",
                    ],
                    "msg": "Field required",
                    "type": "missing",
                },
                {
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 10K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/app/web/thumbnail/ThumbnailForm.java

         */
        public String sort;
    
        /**
         * The language setting for error page display.
         */
        public String lang;
    
        /**
         * Additional search fields for error page display.
         */
        public Map<String, String[]> fields = new HashMap<>();
    
        /**
         * Default constructor for ThumbnailForm.
         */
        public ThumbnailForm() {
            // Default constructor
        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 1.9K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb1/net/NetServerEnum2Test.java

        private Object getFieldValue(Object obj, String fieldName) {
            try {
                Field field = getField(obj.getClass(), fieldName);
                field.setAccessible(true);
                return field.get(obj);
            } catch (Exception e) {
                throw new RuntimeException("Failed to get field value: " + fieldName, e);
            }
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 19.7K bytes
    - Click Count (0)
  7. docs_src/stream_json_lines/tutorial001_py310.py

    async def stream_items() -> AsyncIterable[Item]:
        for item in items:
            yield item
    
    
    @app.get("/items/stream-no-async")
    def stream_items_no_async() -> Iterable[Item]:
        for item in items:
            yield item
    
    
    @app.get("/items/stream-no-annotation")
    async def stream_items_no_annotation():
        for item in items:
            yield item
    
    
    @app.get("/items/stream-no-async-no-annotation")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 27 18:56:47 GMT 2026
    - 936 bytes
    - Click Count (0)
  8. docs/uk/docs/advanced/events.md

    ### Функція тривалості життя { #lifespan-function }
    
    Перше, на що слід звернути увагу: ми визначаємо асинхронну функцію з `yield`. Це дуже схоже на залежності з `yield`.
    
    {* ../../docs_src/events/tutorial003_py310.py hl[14:19] *}
    
    Перша частина функції до `yield` буде виконана перед запуском застосунку.
    
    А частина після `yield` буде виконана після завершення роботи застосунку.
    
    ### Асинхронний менеджер контексту { #async-context-manager }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 12.2K bytes
    - Click Count (0)
  9. cmd/format-meta.go

    // formatMetaV1 should be inherited by backend format structs. Please look at format-fs.go
    // and format-xl.go for details.
    
    // Ideally we will never have a situation where we will have to change the
    // fields of this struct and deal with related migration.
    type formatMetaV1 struct {
    	// Version of the format config.
    	Version string `json:"version"`
    	// Format indicates the backend format type, supports two values 'xl' and 'fs'.
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 1.7K bytes
    - Click Count (0)
  10. docs_src/query_param_models/tutorial001_py310.py

    from typing import Literal
    
    from fastapi import FastAPI, Query
    from pydantic import BaseModel, Field
    
    app = FastAPI()
    
    
    class FilterParams(BaseModel):
        limit: int = Field(100, gt=0, le=100)
        offset: int = Field(0, ge=0)
        order_by: Literal["created_at", "updated_at"] = "created_at"
        tags: list[str] = []
    
    
    @app.get("/items/")
    async def read_items(filter_query: FilterParams = Query()):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Sep 17 18:54:10 GMT 2024
    - 422 bytes
    - Click Count (0)
Back to Top