Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 416 for esum (0.03 seconds)

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

  1. tests/test_jsonable_encoder.py

    import warnings
    from collections import deque
    from dataclasses import dataclass
    from datetime import datetime, timezone
    from decimal import Decimal
    from enum import Enum
    from math import isinf, isnan
    from pathlib import PurePath, PurePosixPath, PureWindowsPath
    from typing import Optional, TypedDict
    
    import pytest
    from fastapi._compat import Undefined
    from fastapi.encoders import jsonable_encoder
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 9.2K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/cache/LongAdder.java

        add(-1L);
      }
    
      /**
       * Returns the current sum. The returned value is NOT an atomic snapshot; invocation in
       * the absence of concurrent updates returns an accurate result, but concurrent updates that occur
       * while the sum is being calculated might not be incorporated.
       *
       * @return the sum
       */
      @Override
      public long sum() {
        long sum = base;
        Cell[] as = cells;
        if (as != null) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  3. docs/zh/docs/tutorial/path-params.md

    ## 预设值
    
    路径操作使用 Python 的 <abbr title="Enumeration">`Enum`</abbr> 类型接收预设的*路径参数*。
    
    ### 创建 `Enum` 类
    
    导入 `Enum` 并创建继承自 `str` 和 `Enum` 的子类。
    
    通过从 `str` 继承,API 文档就能把值的类型定义为**字符串**,并且能正确渲染。
    
    然后,创建包含固定值的类属性,这些固定值是可用的有效值:
    
    {* ../../docs_src/path_params/tutorial005.py hl[1,6:9] *}
    
    /// info | 说明
    
    Python 3.4 及之后版本支持<a href="https://docs.python.org/zh-cn/3/library/enum.html" class="external-link" target="_blank">枚举(即 enums)</a>。
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sun Dec 15 16:43:19 GMT 2024
    - 7.4K bytes
    - Click Count (0)
  4. fastapi/openapi/models.py

    from collections.abc import Iterable, Mapping
    from enum import Enum
    from typing import Annotated, Any, Callable, Optional, Union
    
    from fastapi._compat import with_info_plain_validator_function
    from fastapi.logger import logger
    from pydantic import (
        AnyUrl,
        BaseModel,
        Field,
        GetJsonSchemaHandler,
    )
    from typing_extensions import Literal, TypedDict
    from typing_extensions import deprecated as typing_deprecated
    
    try:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 15.1K bytes
    - Click Count (0)
  5. docs/fr/docs/tutorial/path-params.md

    ### Création d'un `Enum`
    
    Importez `Enum` et créez une sous-classe qui hérite de `str` et `Enum`.
    
    En héritant de `str` la documentation sera capable de savoir que les valeurs doivent être de type `string` et pourra donc afficher cette `Enum` correctement.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Nov 09 16:39:20 GMT 2024
    - 9.8K bytes
    - Click Count (0)
  6. docs/smb3-features/03-multi-channel-design.md

    - **MS-SMB2 Section 3.2.4.1.6**: Alternative Channel Creation
    - **MS-SMB2 Section 3.3.5.15.12**: Channel Binding
    
    ## 3. Multi-Channel Architecture
    
    ### 3.1 Channel States
    ```java
    public enum ChannelState {
        DISCONNECTED(0),     // Not connected
        CONNECTING(1),       // Connection in progress
        AUTHENTICATING(2),   // Authentication in progress
        ESTABLISHED(3),      // Ready for use
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 02:53:50 GMT 2025
    - 39.6K bytes
    - Click Count (0)
  7. build-logic/documentation/src/test/resources/org/gradle/test/GroovyClassWithInnerTypes.groovy

    package org.gradle.test
    
    import org.gradle.test.sub2.GroovyInterface
    
    class GroovyClassWithInnerTypes implements GroovyInterface {
        /**
         * This is an inner enum.
         */
        enum InnerEnum {}
    
        /**
         * This is an inner class.
         */
        static class InnerClass {
            InnerEnum enumProp
    
            /**
             * This is an inner inner class.
             */
            class AnotherInner {
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 609 bytes
    - Click Count (0)
  8. docs/ru/docs/tutorial/path-params.md

    ### Создание класса `Enum` { #create-an-enum-class }
    
    Импортируйте `Enum` и создайте подкласс, который наследуется от `str` и `Enum`.
    
    Мы наследуемся от `str`, чтобы документация API могла понять, что значения должны быть типа `string` и отображалась правильно.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 14.2K bytes
    - Click Count (0)
  9. guava-testlib/src/com/google/common/collect/testing/IteratorFeature.java

    import java.util.ListIterator;
    import java.util.Set;
    
    /**
     * A method supported by implementations of the {@link Iterator} or {@link ListIterator} interface.
     *
     * <p>This enum is GWT compatible.
     *
     * @author Chris Povirk
     */
    @GwtCompatible
    public enum IteratorFeature {
      /** Support for {@link Iterator#remove()}. */
      SUPPORTS_REMOVE,
      /**
       * Support for {@link ListIterator#add(Object)}; ignored for plain {@link Iterator}
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 03 18:22:43 GMT 2023
    - 1.9K bytes
    - Click Count (0)
  10. tests/test_tutorial/test_path_params/test_tutorial005.py

    
    def test_get_enums_invalid():
        response = client.get("/models/foo")
        assert response.status_code == 422
        assert response.json() == {
            "detail": [
                {
                    "type": "enum",
                    "loc": ["path", "model_name"],
                    "msg": "Input should be 'alexnet', 'resnet' or 'lenet'",
                    "input": "foo",
                    "ctx": {"expected": "'alexnet', 'resnet' or 'lenet'"},
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 4.1K bytes
    - Click Count (0)
Back to Top