Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 896 for context_a (0.06 seconds)

  1. tests/test_dependency_contextmanager.py

    
    async def context_a(state: dict = Depends(get_state)):
        state["context_a"] = "started a"
        try:
            yield state
        finally:
            state["context_a"] = "finished a"
    
    
    async def context_b(state: dict = Depends(context_a)):
        state["context_b"] = "started b"
        try:
            yield state
        finally:
            state["context_b"] = f"finished b with a: {state['context_a']}"
    
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  2. internal/kms/context.go

    package kms
    
    import (
    	"bytes"
    	"sort"
    	"unicode/utf8"
    )
    
    // Context is a set of key-value pairs that
    // are associated with a generate data encryption
    // key (DEK).
    //
    // A KMS implementation may bind the context to the
    // generated DEK such that the same context must be
    // provided when decrypting an encrypted DEK.
    type Context map[string]string
    
    // MarshalText returns a canonical text representation of
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 6K bytes
    - Click Count (0)
  3. tests/test_dependency_contextvars.py

    
    def test_dependency_contextvars():
        """
        Check that custom middlewares don't affect the contextvar context for dependencies.
    
        The code before yield and the code after yield should be run in the same contextvar
        context, so that request_state_context_var.reset(contextvar_token).
    
        If they are run in a different context, that raises an error.
        """
        response = client.get("/user")
        assert response.json() == "deadpond"
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 1.5K bytes
    - Click Count (0)
  4. src/cmd/api/api_test.go

    	if *flagCheck {
    		// slow, not worth repeating in -check
    		t.Skip("skipping with -check set")
    	}
    	testenv.MustHaveGoBuild(t)
    	context := new(build.Context)
    	*context = build.Default
    	context.Dir = filepath.Join(testenv.GOROOT(t), "src")
    
    	w := NewWalker(context, context.Dir)
    	for _, pkg := range w.stdPackages {
    		if strings.HasPrefix(pkg, "vendor/") || strings.HasPrefix(pkg, "golang.org/x/") {
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Fri May 02 17:06:27 GMT 2025
    - 7.6K bytes
    - Click Count (0)
  5. docs/es/docs/advanced/templates.md

    ```jinja hl_lines="7"
    {!../../docs_src/templates/templates/item.html!}
    ```
    
    ### Valores de Contexto de la Plantilla { #template-context-values }
    
    En el HTML que contiene:
    
    {% raw %}
    
    ```jinja
    Item ID: {{ id }}
    ```
    
    {% endraw %}
    
    ...mostrará el `id` tomado del `dict` de "contexto" que pasaste:
    
    ```Python
    {"id": id}
    ```
    
    Por ejemplo, con un ID de `42`, esto se renderizaría como:
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 3.7K bytes
    - Click Count (0)
  6. src/cmd/api/main_test.go

    			t.Fatal(err)
    		}
    		nextFiles = next
    	}
    
    	for _, c := range contexts {
    		c.Compiler = build.Default.Compiler
    	}
    
    	walkers := make([]*Walker, len(contexts))
    	var wg sync.WaitGroup
    	for i, context := range contexts {
    		i, context := i, context
    		wg.Add(1)
    		go func() {
    			defer wg.Done()
    			walkers[i] = NewWalker(context, filepath.Join(testenv.GOROOT(t), "src"))
    		}()
    	}
    	wg.Wait()
    
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Thu Feb 20 03:25:33 GMT 2025
    - 31.4K bytes
    - Click Count (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/services/RequestTrace.java

     * application-specific data to provide context when invoking session methods.</p>
     *
     * <p>This trace information is particularly useful for:</p>
     * <ul>
     *   <li>Debugging and troubleshooting request flows</li>
     *   <li>Audit logging of session operations</li>
     *   <li>Performance monitoring of nested operations</li>
     * </ul>
     *
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Oct 16 06:12:36 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  8. docs/pt/docs/tutorial/dependencies/dependencies-with-yield.md

    ## Gerenciadores de contexto { #context-managers }
    
    ### O que são "Gerenciadores de Contexto" { #what-are-context-managers }
    
    "Gerenciadores de Contexto" são qualquer um dos objetos Python que podem ser utilizados com a declaração `with`.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 14.2K bytes
    - Click Count (0)
  9. docs/pt/docs/advanced/templates.md

    ```jinja hl_lines="7"
    {!../../docs_src/templates/templates/item.html!}
    ```
    
    ### Valores de contexto do template { #template-context-values }
    
    No código HTML que contém:
    
    {% raw %}
    
    ```jinja
    Item ID: {{ id }}
    ```
    
    {% endraw %}
    
    ...aparecerá o `id` obtido do "context" `dict` que você passou:
    
    ```Python
    {"id": id}
    ```
    
    Por exemplo, dado um ID de valor `42`, aparecerá:
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  10. docs/pt/llm-prompt.md

    * «/// tip»: «/// tip | Dica»
    * «/// warning»: «/// warning | Atenção»
    * «(you should)»: «(você deveria)»
    * async context manager: gerenciador de contexto assíncrono
    * autocomplete: autocompletar
    * autocompletion: preenchimento automático
    * bug: bug
    * context manager: gerenciador de contexto
    * cross domain: cross domain (do not translate to "domínio cruzado")
    * cross origin: cross origin (do not translate to "origem cruzada")
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 3.1K bytes
    - Click Count (0)
Back to Top