Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 328 for literals (0.29 sec)

  1. docs_src/query_param_models/tutorial002_pv1_py39.py

    from fastapi import FastAPI, Query
    from pydantic import BaseModel, Field
    from typing_extensions import Literal
    
    app = FastAPI()
    
    
    class FilterParams(BaseModel):
        class 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/")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 476 bytes
    - Viewed (0)
  2. docs_src/query_param_models/tutorial002_pv1.py

    from fastapi import FastAPI, Query
    from pydantic import BaseModel, Field
    from typing_extensions import Literal
    
    app = FastAPI()
    
    
    class FilterParams(BaseModel):
        class 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/")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 501 bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/text/Tokenizer.java

         *
         * @param str
         *            文字列。{@literal null}であってはいけません
         */
        public Tokenizer(final String str) {
            this(str, defaultCtype);
        }
    
        /**
         * {@link Tokenizer}を作成します。
         *
         * @param str
         *            文字列。{@literal null}であってはいけません
         * @param ctype
         *            文字のタイプの配列。{@literal null}や空配列であってはいけません
         */
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/xml/DocumentBuilderUtil.java

     *
     * @author higa
     */
    public abstract class DocumentBuilderUtil {
    
        /**
         * XMLを解析します。
         *
         * @param builder
         *            {@link DocumentBuilder}。{@literal null}であってはいけません
         * @param is
         *            入力ストリーム。{@literal null}であってはいけません
         * @return {@link Document}
         */
        public static Document parse(final DocumentBuilder builder, final InputStream is) {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  5. scripts/label_approved.py

    import logging
    from typing import Literal
    
    from github import Github
    from github.PullRequestReview import PullRequestReview
    from pydantic import BaseModel, SecretStr
    from pydantic_settings import BaseSettings
    
    
    class LabelSettings(BaseModel):
        await_label: str | None = None
        number: int
    
    
    default_config = {"approved-2": LabelSettings(await_label="awaiting-review", number=2)}
    
    
    class Settings(BaseSettings):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 12 13:58:30 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/convert/BooleanConversionUtil.java

                    return Boolean.TRUE;
                }
            } else {
                return Boolean.TRUE;
            }
        }
    
        /**
         * {@literal boolean}に変換します。
         *
         * @param o
         *            変換元のオブジェクト
         * @return 変換された{@literal boolean}
         */
        public static boolean toPrimitiveBoolean(final Object o) {
            final Boolean b = toBoolean(o);
            if (b != null) {
                return b;
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  7. fastapi/_compat.py

            model_name_map: ModelNameMap,
            field_mapping: Dict[
                Tuple[ModelField, Literal["validation", "serialization"]], JsonSchemaValue
            ],
            separate_input_output_schemas: bool = True,
        ) -> Dict[str, Any]:
            override_mode: Union[Literal["validation"], None] = (
                None if separate_input_output_schemas else "validation"
            )
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 12 09:36:32 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/beans/impl/ParameterizedClassDescImpl.java

         *
         * @param rawClass
         *            原型となるクラス。{@literal null}であってはいけません
         */
        public ParameterizedClassDescImpl(final Class<?> rawClass) {
            assertArgumentNotNull("rawClass", rawClass);
    
            this.rawClass = rawClass;
        }
    
        /**
         * インスタンスを構築します。
         *
         * @param rawClass
         *            原型となるクラス。{@literal null}であってはいけません
         * @param arguments
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/lang/ConstructorUtil.java

    public abstract class ConstructorUtil {
    
        /**
         * 指定された初期化パラメータで、コンストラクタの宣言クラスの新しいインスタンスを作成および初期化します。
         *
         * @param <T>
         *            コンストラクタの宣言クラス
         * @param constructor
         *            コンストラクタ。{@literal null}であってはいけません
         * @param args
         *            コンストラクタ呼び出しに引数として渡すオブジェクトの配列
         * @return コンストラクタを呼び出すことで作成される新規オブジェクト
         * @throws InstantiationRuntimeException
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/zip/ZipInputStreamUtil.java

        /**
         * {@link ZipInputStream#getNextEntry()}の例外処理をラップするメソッドです。
         *
         * @param zis
         *            {@link ZipInputStream}。{@literal null}であってはいけません
         * @return {@link ZipEntry}
         * @see ZipInputStream#getNextEntry()
         */
        public static ZipEntry getNextEntry(final ZipInputStream zis) {
            assertArgumentNotNull("zis", zis);
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.9K bytes
    - Viewed (0)
Back to top