Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for SomeType (0.2 sec)

  1. build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/source/model/TypeMetaDataTest.groovy

        final TypeMetaData type = new TypeMetaData('org.gradle.SomeType')
    
        def rawTypeForSimpleType() {
            expect:
            type.rawType.signature == 'org.gradle.SomeType'
        }
    
        def rawTypeForArrayType() {
            type.arrayDimensions = 2
    
            expect:
            type.rawType.signature == 'org.gradle.SomeType[][]'
        }
    
        def rawTypeForVarargsType() {
            when:
    Groovy
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 4.6K bytes
    - Viewed (0)
  2. build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/source/model/ParameterMetaDataTest.groovy

        def "formats signature"() {
            MethodMetaData method = Mock()
            def parameter = new ParameterMetaData('param')
            def type = new TypeMetaData('org.gradle.SomeType')
            parameter.type = type
    
            expect:
            parameter.signature == 'org.gradle.SomeType param'
        }
    Groovy
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 1K bytes
    - Viewed (0)
  3. build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/docbook/ClassDocRendererTest.groovy

                <title>
                    <classname>SomeType</classname>
                    <literal>readWriteProperty</literal>
                </title>
                <para>comment</para>
            </section>
            <section id="readOnlyProperty" role="detail">
                <title><classname>SomeType</classname> <literal>readOnlyProperty</literal> (read-only)</title>
                <para>comment</para>
    Groovy
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 40.8K bytes
    - Viewed (0)
  4. docs/vi/docs/python-types.md

    * 🚨 Tránh sử dụng `Optional[SomeType]`
    * Thay vào đó ✨ **sử dụng `Union[SomeType, None]`** ✨.
    
    Cả hai là tương đương và bên dưới chúng giống nhau, nhưng tôi sẽ đễ xuất `Union` thay cho `Optional` vì từ "**tùy chọn**" có vẻ ngầm định giá trị là tùy chọn, và nó thực sự có nghĩa rằng "nó có thể là `None`", do đó nó không phải là tùy chọn và nó vẫn được yêu cầu.
    
    Tôi nghĩ `Union[SomeType, None]` là rõ ràng hơn về ý nghĩa của nó.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  5. docs/en/docs/python-types.md

    * 🚨 Avoid using `Optional[SomeType]`
    * Instead ✨ **use `Union[SomeType, None]`** ✨.
    
    Both are equivalent and underneath they are the same, but I would recommend `Union` instead of `Optional` because the word "**optional**" would seem to imply that the value is optional, and it actually means "it can be `None`", even if it's not optional and is still required.
    
    I think `Union[SomeType, None]` is more explicit about what it means.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17K bytes
    - Viewed (0)
  6. docs/de/docs/python-types.md

        ```
    
    #### `Union` oder `Optional` verwenden?
    
    Wenn Sie eine Python-Version unterhalb 3.10 verwenden, hier ist mein sehr **subjektiver** Standpunkt dazu:
    
    * 🚨 Vermeiden Sie `Optional[SomeType]`
    * Stattdessen ✨ **verwenden Sie `Union[SomeType, None]`** ✨.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 20:29:25 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  7. docs/bn/docs/python-types.md

    * 🚨 `Optional[SomeType]` ব্যবহার এড়িয়ে চলুন।
    * এর পরিবর্তে ✨ **`Union[SomeType, None]` ব্যবহার করুন** ✨।
    
    উভয়ই সমতুল্য এবং মূলে একই, কিন্তু আমি `Union`-এর পক্ষে সুপারিশ করব কারণ "**অপশনাল**" শব্দটি মনে হতে পারে যে মানটি ঐচ্ছিক,অথচ এটি আসলে মানে "এটি হতে পারে `None`", এমনকি যদি এটি ঐচ্ছিক না হয়েও আবশ্যিক হয়।
    
    আমি মনে করি `Union[SomeType, None]` এর অর্থ আরও স্পষ্টভাবে প্রকাশ করে।
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Apr 03 15:34:37 GMT 2024
    - 36K bytes
    - Viewed (0)
  8. docs/em/docs/python-types.md

    🚥 👆 ⚙️ 🐍 ⏬ 🔛 3️⃣.1️⃣0️⃣, 📥 💁‍♂ ⚪️➡️ 👇 📶 **🤔** ☝ 🎑:
    
    * 👶 ❎ ⚙️ `Optional[SomeType]`
    * ↩️ 👶 **⚙️ `Union[SomeType, None]`** 👶.
    
    👯‍♂️ 🌓 &amp; 🔘 👫 🎏, ✋️ 👤 🔜 👍 `Union` ↩️ `Optional` ↩️ 🔤 "**📦**" 🔜 😑 🔑 👈 💲 📦, &amp; ⚫️ 🤙 ⛓ "⚫️ 💪 `None`", 🚥 ⚫️ 🚫 📦 &amp; ✔.
    
    👤 💭 `Union[SomeType, None]` 🌖 🔑 🔃 ⚫️❔ ⚫️ ⛓.
    
    ⚫️ 🔃 🔤 &amp; 📛. ✋️ 👈 🔤 💪 📉 ❔ 👆 &amp; 👆 🤽‍♂ 💭 🔃 📟.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  9. architecture/networking/pilot.md

    `PushContext` is built up by querying the above layers. For some simple use cases, this is as simple as storing something like `configstore.List(SomeType)`; in this case, the only difference from directly exposing the configstore is to snapshot the current state. In other cases, some pre-computations and indexes are computed to make later accesses efficient.
    
    #### Endpoints
    
    Plain Text
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Wed Feb 07 17:53:24 GMT 2024
    - 19.1K bytes
    - Viewed (0)
Back to top