Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 999 for union2 (0.15 sec)

  1. src/internal/types/testdata/examples/constraints.go

    	_ interface{int|any}
    	_ interface{int|~string|union}
    	_ interface{int|~string|interface{int}}
    	_ interface{union|int}   // interfaces (here: union) are ignored when checking for overlap
    	_ interface{union|union} // ditto
    
    	// For now we do not permit interfaces with methods in unions.
    	_ interface{~ /* ERROR "invalid use of ~" */ any}
    	_ interface{int|interface /* ERRORx `cannot use .* in union` */ { m() }}
    )
    
    type (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 2.9K 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/em/docs/tutorial/extra-models.md

        ```
    
    ## `Union` ⚖️ `anyOf`
    
    👆 💪 📣 📨 `Union` 2️⃣ 🆎, 👈 ⛓, 👈 📨 🔜 🙆 2️⃣.
    
    ⚫️ 🔜 🔬 🗄 ⏮️ `anyOf`.
    
    👈, ⚙️ 🐩 🐍 🆎 🔑 <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: Thu Apr 18 19:53:19 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/internal/typeparams/normalize.go

    				terms = tset2.terms
    			case *types.TypeParam, *types.Union:
    				// A stand-alone type parameter or union is not permitted as union
    				// term.
    				return nil, fmt.Errorf("invalid union term %T", t)
    			default:
    				if t.Type() == types.Typ[types.Invalid] {
    					continue
    				}
    				terms = termlist{{t.Tilde(), t.Type()}}
    			}
    			tset.terms = tset.terms.union(terms)
    			if len(tset.terms) > maxTermCount {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/extra-models.md

        ```
    
    ## `Union` or `anyOf`
    
    You can declare a response to be the `Union` of two types, that means, that the response would be any of the two.
    
    It will be defined in OpenAPI with `anyOf`.
    
    To do that, use the standard Python type hint <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: Thu Apr 18 19:53:19 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  6. 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)
  7. docs/pt/docs/tutorial/extra-models.md

        ```
    
    ## `Union` ou `anyOf`
    
    Você pode declarar uma resposta como o `Union` de dois tipos, o que significa que a resposta seria qualquer um dos dois.
    
    Isso será definido no OpenAPI com `anyOf`.
    
    Para fazer isso, use a dica de tipo padrão do 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
    - 7.8K bytes
    - Viewed (0)
  8. docs/de/docs/tutorial/extra-models.md

    !!! note "Hinweis"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 20:26:47 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/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: Sat Sep 03 18:29:30 UTC 2022
    - 3.8K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/internal/typeparams/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: Thu Sep 21 21:08:44 UTC 2023
    - 3.8K bytes
    - Viewed (0)
Back to top