Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for generic (0.22 sec)

  1. docs/uk/docs/python-types.md

        ```
    
    === "Python 3.10 і вище"
    
        ```Python hl_lines="1"
        {!> ../../../docs_src/python_types/tutorial009_py310.py!}
        ```
    
    #### Generic типи
    
    Ці типи, які приймають параметри типу у квадратних дужках, називаються **Generic types** or **Generics**, наприклад:
    
    === "Python 3.8 і вище"
    
        * `List`
        * `Tuple`
        * `Set`
        * `Dict`
        * `Union`
        * `Optional`
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 19.7K bytes
    - Viewed (0)
  2. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10PsiTypeProvider.kt

            return when (this) {
                KtTypeMappingMode.DEFAULT -> TypeMappingMode.DEFAULT
                KtTypeMappingMode.DEFAULT_UAST -> TypeMappingMode.DEFAULT_UAST
                KtTypeMappingMode.GENERIC_ARGUMENT -> TypeMappingMode.GENERIC_ARGUMENT
                KtTypeMappingMode.SUPER_TYPE -> TypeMappingMode.SUPER_TYPE
                KtTypeMappingMode.SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS -> TypeMappingMode.SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS
    Plain Text
    - Registered: Fri May 03 08:18:13 GMT 2024
    - Last Modified: Thu Mar 28 16:10:07 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  3. docs/ru/docs/python-types.md

    #### Generic-типы
    
    Эти типы принимают параметры в квадратных скобках:
    
    * `List`
    * `Tuple`
    * `Set`
    * `Dict`
    * `Optional`
    * ...и др.
    
    называются **Generic-типами** или **Generics**.
    
    ### Классы как типы
    
    Вы также можете объявить класс как тип переменной.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  4. docs/tr/docs/python-types.md

    #### Generic tipler
    
    Köşeli parantez içinde tip parametreleri alan bu türler, örneğin:
    
    * `List`
    * `Tuple`
    * `Set`
    * `Dict`
    * `Optional`
    * ...and others.
    
    **Generic types** yada  **Generics** olarak adlandırılır.
    
    ### Tip olarak Sınıflar
    
    Bir değişkenin tipini bir sınıf ile bildirebilirsiniz.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 9.7K bytes
    - Viewed (0)
  5. docs/en/docs/python-types.md

    ```
    
    And then you won't have to worry about names like `Optional` and `Union`. 😎
    
    #### Generic types
    
    These types that take type parameters in square brackets are called **Generic types** or **Generics**, for example:
    
    === "Python 3.10+"
    
        You can use the same builtin types as generics (with square brackets and types inside):
    
        * `list`
        * `tuple`
        * `set`
        * `dict`
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17K bytes
    - Viewed (0)
  6. docs/ko/docs/python-types.md

    ```
    
    `Optional[str]`을 `str` 대신 쓰게 되면, 특정 값이 실제로는 `None`이 될 수도 있는데 항상 `str`이라고 가정하는 상황에서 에디터가 에러를 찾게 도와줄 수 있습니다.
    
    #### Generic(제네릭) 타입
    
    이 타입은 대괄호 안에 매개변수를 가지며, 종류는:
    
    * `List`
    * `Tuple`
    * `Set`
    * `Dict`
    * `Optional`
    * ...등등
    
    위와 같은 타입은 **Generic(제네릭) 타입** 혹은 **Generics(제네릭스)**라고 불립니다.
    
    ### 타입으로서의 클래스
    
    변수의 타입으로 클래스를 선언할 수도 있습니다.
    
    이름(name)을 가진 `Person` 클래스가 있다고 해봅시다.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirPsiTypeProvider.kt

            return when (this) {
                KtTypeMappingMode.DEFAULT -> TypeMappingMode.DEFAULT
                KtTypeMappingMode.DEFAULT_UAST -> TypeMappingMode.DEFAULT_UAST
                KtTypeMappingMode.GENERIC_ARGUMENT -> TypeMappingMode.GENERIC_ARGUMENT
                KtTypeMappingMode.SUPER_TYPE -> TypeMappingMode.SUPER_TYPE
                KtTypeMappingMode.SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS -> TypeMappingMode.SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Apr 12 13:29:57 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt

        }
      }
    }
    
    internal fun String.read14BitInt(index: Int): Int {
      val b0 = this[index].code
      val b1 = this[index + 1].code
      return (b0 shl 7) + b1
    }
    
    /**
     * An extremely generic binary search that doesn't know what data it's searching over. The caller
     * provides indexes and a comparison function, and this calls that function iteratively.
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Apr 02 11:39:58 GMT 2024
    - 9K bytes
    - Viewed (0)
  9. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/descriptorBased/base/Kt1DescUtils.kt

        if (descriptor is TypeAliasDescriptor) {
            descriptor = descriptor.classDescriptor
        }
    
        if (descriptor !is ClassDescriptor) {
            return null
        }
    
        // Generic non-array class literals are not supported in K1
        val typeArguments = descriptor.typeConstructor.parameters.map { StarProjectionImpl(it) }
    
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 07:15:56 GMT 2024
    - 33.2K bytes
    - Viewed (0)
  10. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/diagnostics/KtFirDataClassConverters.kt

                firDiagnostic as KtPsiDiagnostic,
                token,
            )
        }
        add(FirErrors.GENERIC_THROWABLE_SUBCLASS) { firDiagnostic ->
            GenericThrowableSubclassImpl(
                firDiagnostic as KtPsiDiagnostic,
                token,
            )
        }
        add(FirErrors.INNER_CLASS_OF_GENERIC_THROWABLE_SUBCLASS) { firDiagnostic ->
            InnerClassOfGenericThrowableSubclassImpl(
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Wed Apr 24 09:49:26 GMT 2024
    - 208.3K bytes
    - Viewed (0)
Back to top