Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 480 for union2 (0.15 sec)

  1. src/cmd/cgo/internal/testerrors/ptr_test.go

    	},
    	{
    		// Check a pointer to a union if the union has any
    		// pointer fields.
    		name:    "union1",
    		c:       `typedef union { char **p; unsigned long i; } u29; void f29(u29 *pu) {}`,
    		imports: []string{"unsafe"},
    		body:    `var b C.char; p := &b; C.f29((*C.u29)(unsafe.Pointer(&p)))`,
    		fail:    true,
    	},
    	{
    		// Don't check a pointer to a union if the union does
    		// not have any pointer fields.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:49 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/excludes/factories/NormalizingExcludeFactory.java

    public class NormalizingExcludeFactory extends DelegatingExcludeFactory {
        private final Intersections intersections;
        private final Unions unions;
    
        public NormalizingExcludeFactory(ExcludeFactory delegate) {
            super(delegate);
            this.intersections = new Intersections(this);
            this.unions = new Unions(this);
        }
    
        @Override
        public ExcludeSpec anyOf(ExcludeSpec one, ExcludeSpec two) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 17.4K bytes
    - Viewed (0)
  3. docs/ru/docs/tutorial/extra-models.md

        ```
    
    ## `Union` или `anyOf`
    
    Вы можете определить ответ как `Union` из двух типов. Это означает, что ответ должен соответствовать одному из них.
    
    Он будет определён в OpenAPI как `anyOf`.
    
    Для этого используйте стандартные аннотации типов в Python <a href="https://docs.python.org/3/library/typing.html#typing.Union" class="external-link" target="_blank">`typing.Union`</a>:
    
    !!! note "Примечание"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Mar 22 01:42:11 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  4. docs/en/docs/python-types.md

        And the same as with Python 3.8, from the `typing` module:
    
        * `Union`
        * `Optional` (the same as with Python 3.8)
        * ...and others.
    
        In Python 3.10, as an alternative to using the generics `Union` and `Optional`, you can use the <abbr title='also called "bitwise or operator", but that meaning is not relevant here'>vertical bar (`|`)</abbr> to declare unions of types, that's a lot better and simpler.
    
    === "Python 3.9+"
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri May 31 02:38:05 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  5. tensorflow/cc/experimental/libtf/value.h

    /// @brief The TaggedValue struct that supports Python-like behavior in C++.
    ///
    /// The TaggedValue struct implements a tagged union data structure
    /// (https://en.wikipedia.org/wiki/Tagged_union) in the TensorFlow C++ API. It
    /// contains a `Type` enum (sometimes referred to as a "tag")
    /// and a `Data` union for holding values.
    
    #ifndef TENSORFLOW_CC_EXPERIMENTAL_LIBTF_VALUE_H_
    #define TENSORFLOW_CC_EXPERIMENTAL_LIBTF_VALUE_H_
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:23:45 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/typeset.go

    				t = nil // ∅ term
    			}
    			terms = termlist{(*term)(t)}
    		}
    		// The type set of a union expression is the union
    		// of the type sets of each term.
    		allTerms = allTerms.union(terms)
    		if len(allTerms) > maxTermCount {
    			if check != nil {
    				check.errorf(atPos(pos), InvalidUnion, "cannot handle more than %d union terms (implementation limitation)", maxTermCount)
    			}
    			unionSets[utyp] = &invalidTypeSet
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  7. src/go/types/typeset.go

    				t = nil // ∅ term
    			}
    			terms = termlist{(*term)(t)}
    		}
    		// The type set of a union expression is the union
    		// of the type sets of each term.
    		allTerms = allTerms.union(terms)
    		if len(allTerms) > maxTermCount {
    			if check != nil {
    				check.errorf(atPos(pos), InvalidUnion, "cannot handle more than %d union terms (implementation limitation)", maxTermCount)
    			}
    			unionSets[utyp] = &invalidTypeSet
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  8. fastapi/params.py

                ),
            ] = None,
            discriminator: Union[str, None] = None,
            strict: Union[bool, None] = _Unset,
            multiple_of: Union[float, None] = _Unset,
            allow_inf_nan: Union[bool, None] = _Unset,
            max_digits: Union[int, None] = _Unset,
            decimal_places: Union[int, None] = _Unset,
            examples: Optional[List[Any]] = None,
            example: Annotated[
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  9. fastapi/openapi/models.py

        headers: Optional[Dict[str, Union[Header, Reference]]] = None
        securitySchemes: Optional[Dict[str, Union[SecurityScheme, Reference]]] = None
        links: Optional[Dict[str, Union[Link, Reference]]] = None
        # Using Any for Specification Extensions
        callbacks: Optional[Dict[str, Union[Dict[str, PathItem], Reference, Any]]] = None
        pathItems: Optional[Dict[str, Union[PathItem, Reference]]] = None
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 22:49:33 UTC 2024
    - 15K bytes
    - Viewed (1)
  10. .github/actions/notify-translations/app/main.py

    def get_graphql_response(
        *,
        settings: Settings,
        query: str,
        after: Union[str, None] = None,
        category_id: Union[str, None] = None,
        discussion_number: Union[int, None] = None,
        discussion_id: Union[str, None] = None,
        comment_id: Union[str, None] = None,
        body: Union[str, None] = None,
    ) -> Dict[str, Any]:
        headers = {"Authorization": f"token {settings.input_token.get_secret_value()}"}
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Sep 27 23:01:46 UTC 2023
    - 12.4K bytes
    - Viewed (0)
Back to top