Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 57 for keyFor (0.13 sec)

  1. docs/en/docs/tutorial/background-tasks.md

    ```
    
    `.add_task()` receives as arguments:
    
    * A task function to be run in the background (`write_notification`).
    * Any sequence of arguments that should be passed to the task function in order (`email`).
    * Any keyword arguments that should be passed to the task function (`message="some notification"`).
    
    ## Dependency Injection
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 18 23:43:13 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  2. src/go/build/read.go

    				for c != '\n' && r.err == nil && !r.eof {
    					c = r.readByteNoBuf()
    				}
    				startLine = true
    			}
    		}
    	}
    	return false
    }
    
    // readKeyword reads the given keyword from the input.
    // If the keyword is not present, readKeyword records a syntax error.
    func (r *importReader) readKeyword(kw string) {
    	r.peekByte(true)
    	for i := 0; i < len(kw); i++ {
    		if r.nextByte(false) != kw[i] {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  3. docs/en/docs/how-to/nosql-databases-couchbase.md

    It will take the `dict` at `result.value`, and take each of its keys and values and pass them as key-values to `UserInDB` as keyword arguments.
    
    So, if the `dict` contains:
    
    ```Python
    {
        "username": "johndoe",
        "hashed_password": "some_hash",
    }
    ```
    
    It will be passed to `UserInDB` as:
    
    ```Python
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 18 23:43:13 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/path-params-numeric-validations.md

    ...Python has a little special syntax for that.
    
    Pass `*`, as the first parameter of the function.
    
    Python won't do anything with that `*`, but it will know that all the following parameters should be called as keyword arguments (key-value pairs), also known as <abbr title="From: K-ey W-ord Arg-uments"><code>kwargs</code></abbr>. Even if they don't have a default value.
    
    ```Python hl_lines="7"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Jun 01 21:05:52 UTC 2024
    - 9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/python/py_function_lib.py

        expected_input_keys: Collection[str],
    ) -> Callable[[rd.RepresentativeSample], rd.RepresentativeSample]:
      """Creates a validator function for a representative sample.
    
      Args:
        expected_input_keys: Input keys (keyword argument names) that the function
          the sample will be used for is expecting to receive.
    
      Returns:
        A callable that validates a `RepresentativeSample`.
      """
    
      def validator(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 05:32:11 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  6. src/go/types/stmt.go

    	}
    	return token.ILLEGAL
    }
    
    func (check *Checker) suspendedCall(keyword string, call *ast.CallExpr) {
    	var x operand
    	var msg string
    	var code Code
    	switch check.rawExpr(nil, &x, call, nil, false) {
    	case conversion:
    		msg = "requires function call, not conversion"
    		code = InvalidDefer
    		if keyword == "go" {
    			code = InvalidGo
    		}
    	case expression:
    		msg = "discards result of"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  7. pkg/controller/deployment/deployment_controller.go

    	logger := klog.FromContext(ctx)
    	if err == nil || errors.HasStatusCause(err, v1.NamespaceTerminatingCause) {
    		dc.queue.Forget(key)
    		return
    	}
    	ns, name, keyErr := cache.SplitMetaNamespaceKey(key)
    	if keyErr != nil {
    		logger.Error(err, "Failed to split meta namespace cache key", "cacheKey", key)
    	}
    
    	if dc.queue.NumRequeues(key) < maxRetries {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  8. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/parsing/BasicParsingTest.kt

                    rhs = IntLiteral [indexes: 8..9, line/column: 1/9..1/10, file: test] (1)
                )""".trimIndent()
            results.assert(expected)
        }
    
        @Test
        fun `parses assigning 'this' keyword`() {
            val results = parse(
                """
                a = this
                """.trimIndent()
            )
    
            val expected = """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 22:06:18 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  9. pkg/controller/endpoint/endpoints_controller.go

    	return true
    }
    
    func (e *Controller) handleErr(logger klog.Logger, err error, key string) {
    	if err == nil {
    		e.queue.Forget(key)
    		return
    	}
    
    	ns, name, keyErr := cache.SplitMetaNamespaceKey(key)
    	if keyErr != nil {
    		logger.Error(err, "Failed to split meta namespace cache key", "key", key)
    	}
    
    	if e.queue.NumRequeues(key) < maxRetries {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/typestring.go

    func WriteType(buf *bytes.Buffer, typ Type, qf Qualifier) {
    	newTypeWriter(buf, qf).typ(typ)
    }
    
    // WriteSignature writes the representation of the signature sig to buf,
    // without a leading "func" keyword. The [Qualifier] controls the printing
    // of package-level objects, and may be nil.
    func WriteSignature(buf *bytes.Buffer, sig *Signature, qf Qualifier) {
    	newTypeWriter(buf, qf).signature(sig)
    }
    
    type typeWriter struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.2K bytes
    - Viewed (0)
Back to top