Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for union2 (0.11 sec)

  1. fastapi/param_functions.py

            ),
        ] = None,
        discriminator: Annotated[
            Union[str, None],
            Doc(
                """
                Parameter field name for discriminating the type in a tagged union.
                """
            ),
        ] = None,
        strict: Annotated[
            Union[bool, None],
            Doc(
                """
                If `True`, strict validation is applied to the field.
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 62.5K bytes
    - Viewed (0)
  2. src/cmd/cgo/gcc.go

    // struct_foo becomes "struct foo", and similarly for
    // union and enum.
    func cname(s string) string {
    	if t, ok := nameToC[s]; ok {
    		return t
    	}
    
    	if strings.HasPrefix(s, "struct_") {
    		return "struct " + s[len("struct_"):]
    	}
    	if strings.HasPrefix(s, "union_") {
    		return "union " + s[len("union_"):]
    	}
    	if strings.HasPrefix(s, "enum_") {
    		return "enum " + s[len("enum_"):]
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/graph/builder/NodeState.java

                        .union(parentAncestorsStrictVersionConstraints)
                        .union(parentEndorsedStrictVersionConstraints);
                } else {
                    constraints = constraints.intersect(
                        parentStrictVersionConstraints
                            .union(parentAncestorsStrictVersionConstraints)
                            .union(parentEndorsedStrictVersionConstraints)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 14:19:34 UTC 2024
    - 58.9K bytes
    - Viewed (0)
  4. src/net/dnsclient_unix_test.go

    			continue
    		}
    	}
    }
    
    // Issue 13705: don't try to resolve onion addresses, etc
    func TestAvoidDNSName(t *testing.T) {
    	tests := []struct {
    		name  string
    		avoid bool
    	}{
    		{"foo.com", false},
    		{"foo.com.", false},
    
    		{"foo.onion.", true},
    		{"foo.onion", true},
    		{"foo.ONION", true},
    		{"foo.ONION.", true},
    
    		// But do resolve *.local address; Issue 16739
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 72.4K bytes
    - Viewed (0)
  5. pkg/apis/flowcontrol/validation/validation_test.go

    						Resources:  []string{flowcontrol.ResourceAll},
    						Namespaces: []string{flowcontrol.NamespaceEvery},
    					}},
    				}},
    			},
    		},
    		expectedErrors: field.ErrorList{},
    	}, {
    		name: "malformed Subject union in ServiceAccount case",
    		flowSchema: &flowcontrol.FlowSchema{
    			ObjectMeta: metav1.ObjectMeta{
    				Name: "system-foo",
    			},
    			Spec: flowcontrol.FlowSchemaSpec{
    				MatchingPrecedence: 50,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 22:22:51 UTC 2023
    - 54.7K bytes
    - Viewed (0)
  6. pkg/scheduler/internal/queue/scheduling_queue.go

    func (p *PriorityQueue) isPodWorthRequeuing(logger klog.Logger, pInfo *framework.QueuedPodInfo, event framework.ClusterEvent, oldObj, newObj interface{}) queueingStrategy {
    	rejectorPlugins := pInfo.UnschedulablePlugins.Union(pInfo.PendingPlugins)
    	if rejectorPlugins.Len() == 0 {
    		logger.V(6).Info("Worth requeuing because no failed plugins", "pod", klog.KObj(pInfo.Pod))
    		return queueAfterBackoff
    	}
    
    	if event.IsWildCard() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 61.4K bytes
    - Viewed (0)
  7. pkg/registry/core/pod/strategy_test.go

    					api.DeprecatedAppArmorAnnotationKeyPrefix + "unconf-annot": api.DeprecatedAppArmorAnnotationValueUnconfined,
    				},
    			},
    			Spec: api.PodSpec{
    				SecurityContext: &api.PodSecurityContext{
    					AppArmorProfile: &api.AppArmorProfile{
    						Type: api.AppArmorProfileTypeRuntimeDefault,
    					},
    				},
    				Containers: []api.Container{{
    					Name: "unconf-annot",
    				}, {
    					Name: "unconf-field",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 76.2K bytes
    - Viewed (0)
  8. docs/ru/docs/deployment/docker.md

    * Создайте файл `main.py` и заполните его:
    
    ```Python
    from typing import Union
    
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    def read_item(item_id: int, q: Union[str, None] = None):
        return {"item_id": item_id, "q": q}
    ```
    
    ### Dockerfile
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/admissionregistration/v1beta1/generated.proto

      // Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1].
      // Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:
      //   - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and
      //     non-intersecting elements in `Y` are appended, retaining their partial order.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 50.4K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/filesystem/filesystem_interface.h

    } TF_Filesystem;
    
    typedef struct TF_TransactionToken {
      void* token;
      TF_Filesystem* owner;
    } TF_TransactionToken;
    
    // The named union is needed here (as opposed to
    // inside the `TF_Filesystem_Option_Value` struct)
    // as MSVC does not recognize `typeof`.
    typedef union TF_Filesystem_Option_Value_Union {
      int64_t int_val;
      double real_val;
      struct {
        char* buf;
        int buf_length;
      } buffer_val;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 27 17:36:54 UTC 2022
    - 53.1K bytes
    - Viewed (0)
Back to top