Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 999 for union2 (0.22 sec)

  1. src/cmd/vendor/golang.org/x/tools/internal/typeparams/coretype.go

    // type restrictions of a type, if any.
    //
    // For all types other than *types.TypeParam, *types.Interface, and
    // *types.Union, this is just a single term with Tilde() == false and
    // Type() == typ. For *types.TypeParam, *types.Interface, and *types.Union, see
    // below.
    //
    // Structural type restrictions of a type parameter are created via
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  2. 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)
  3. src/go/types/termlist.go

    				// in normal form.)
    				if u1.typ == nil {
    					return allTermlist
    				}
    				xi = u1
    				used[j] = true // xj is now unioned into xi - ignore it in future iterations
    			}
    		}
    		rl = append(rl, xi)
    	}
    	return rl
    }
    
    // union returns the union xl ∪ yl.
    func (xl termlist) union(yl termlist) termlist {
    	return append(xl, yl...).norm()
    }
    
    // intersect returns the intersection xl ∩ yl.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. docs/zh/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: Mon Apr 01 01:15:53 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  5. src/syscall/types_freebsd.go

    #include <netinet/tcp.h>
    
    enum {
    	sizeofPtr = sizeof(void*),
    };
    
    union sockaddr_all {
    	struct sockaddr s1;	// this one gets used for fields
    	struct sockaddr_in s2;	// these pad it out
    	struct sockaddr_in6 s3;
    	struct sockaddr_un s4;
    	struct sockaddr_dl s5;
    };
    
    struct sockaddr_any {
    	struct sockaddr addr;
    	char pad[sizeof(union sockaddr_all) - sizeof(struct sockaddr)];
    };
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 16 01:17:28 UTC 2022
    - 6.7K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. src/go/doc/exports.go

    					keepField = true
    					r.remember(fname, ityp)
    				}
    			} else {
    				// If we're operating on an interface, assume that this is an embedded
    				// type or union element.
    				//
    				// TODO(rfindley): consider traversing into approximation/unions
    				// elements to see if they are entirely unexported.
    				keepField = ityp != nil
    			}
    		} else {
    			field.Names = filterIdentList(field.Names)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 01 18:18:07 UTC 2022
    - 8.5K bytes
    - Viewed (0)
  10. 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)
Back to top