Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for ellipsis (0.16 sec)

  1. src/net/netip/netip.go

    	}
    
    	// If didn't parse enough, expand ellipsis.
    	if i < 16 {
    		if ellipsis < 0 {
    			return Addr{}, parseAddrError{in: in, msg: "address string too short"}
    		}
    		n := 16 - i
    		for j := i - 1; j >= ellipsis; j-- {
    			ip[j+n] = ip[j]
    		}
    		clear(ip[ellipsis : ellipsis+n])
    	} else if ellipsis >= 0 {
    		// Ellipsis must represent at least one 0 group.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/query-params-str-validations.md

        ```
    
    !!! info
        If you hadn't seen that `...` before: it is a special single value, it is <a href="https://docs.python.org/3/library/constants.html#Ellipsis" class="external-link" target="_blank">part of Python and is called "Ellipsis"</a>.
    
        It is used by Pydantic and FastAPI to explicitly declare that a value is required.
    
    This will let **FastAPI** know that this parameter is required.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri May 31 02:38:05 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/einsum.cc

      *rhs_named_label_count = rhs_count;
      return labels;
    }
    
    // Generate new unnamed labels for the expression.
    // For example, if we have GenerateLabels(2, {'b', 'c', 'd'}) for "...xy"
    // We will have "dcxy" for the ellipsis expression since it's rank 4,
    // we will have dcbxy if it's rank 5.
    std::string GenerateLabels(int count,
                               const llvm::SetVector<char>& available_labels) {
      std::string new_labels(count, 0);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  4. fastapi/_compat.py

            or hasattr(origin, "__get_pydantic_core_schema__")
        )
    
    
    def field_annotation_is_scalar(annotation: Any) -> bool:
        # handle Ellipsis here to make tuple[int, ...] work nicely
        return annotation is Ellipsis or not field_annotation_is_complex(annotation)
    
    
    def field_annotation_is_scalar_sequence(annotation: Union[Type[Any], None]) -> bool:
        origin = get_origin(annotation)
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/helper/ViewHelper.java

                    texts[i] = fragments[i].string();
                }
                final String value = StringUtils.join(texts, ELLIPSIS);
                if (StringUtil.isNotBlank(value) && !ComponentUtil.getFessConfig().endsWithFullstop(value)) {
                    return value + ELLIPSIS;
                }
                return value;
            }
            return null;
        }
    
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu May 30 06:58:45 UTC 2024
    - 40.2K bytes
    - Viewed (0)
  6. src/go/types/typexpr.go

    		if _, ok := e.Len.(*ast.Ellipsis); ok {
    			check.error(e.Len, BadDotDotDotSyntax, "invalid use of [...] array (outside a composite literal)")
    			typ.len = -1
    		} else {
    			typ.len = check.arrayLength(e.Len)
    		}
    		typ.elem = check.varType(e.Elt)
    		if typ.len >= 0 {
    			return typ
    		}
    		// report error if we encountered [...]
    
    	case *ast.Ellipsis:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go

    				Type: p,
    				Names: []*ast.Ident{
    					{
    						Name: t.Params().At(i).Name(),
    					},
    				},
    			})
    		}
    		if t.Variadic() {
    			last := params[len(params)-1]
    			last.Type = &ast.Ellipsis{Elt: last.Type.(*ast.ArrayType).Elt}
    		}
    		var returns []*ast.Field
    		for i := 0; i < t.Results().Len(); i++ {
    			r := TypeExpr(f, pkg, t.Results().At(i).Type())
    			if r == nil {
    				return nil
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  8. src/go/types/call.go

    	if sig.variadic {
    		if ddd {
    			// variadic_func(a, b, c...)
    			if len(call.Args) == 1 && nargs > 1 {
    				// f()... is not permitted if f() is multi-valued
    				check.errorf(inNode(call, call.Ellipsis), InvalidDotDotDot, "cannot use ... with %d-valued %s", nargs, call.Args[0])
    				return
    			}
    		} else {
    			// variadic_func(a, b, c)
    			if nargs >= npars-1 {
    				// Create custom parameters for arguments: keep
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/call.go

    	if sig.variadic {
    		if ddd {
    			// variadic_func(a, b, c...)
    			if len(call.ArgList) == 1 && nargs > 1 {
    				// f()... is not permitted if f() is multi-valued
    				//check.errorf(call.Ellipsis, "cannot use ... with %d-valued %s", nargs, call.ArgList[0])
    				check.errorf(call, InvalidDotDotDot, "cannot use ... with %d-valued %s", nargs, call.ArgList[0])
    				return
    			}
    		} else {
    			// variadic_func(a, b, c)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  10. src/go/types/generate_test.go

    					if isIdent(n.Args[0], "pos") {
    						pos := n.Args[0].Pos()
    						fun := &ast.SelectorExpr{X: newIdent(pos, "posn"), Sel: newIdent(pos, "Pos")}
    						arg := &ast.CallExpr{Fun: fun, Lparen: pos, Args: nil, Ellipsis: token.NoPos, Rparen: pos}
    						n.Args[0] = arg
    						return false
    					}
    				case "addf":
    					// rewrite err.addf(pos, ...) to err.addf(posn, ...)
    					if isIdent(n.Args[0], "pos") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 16.5K bytes
    - Viewed (0)
Back to top