Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for model_copy (0.06 sec)

  1. docs/de/docs/tutorial/body-updates.md

    ### Pydantics `update`-Parameter verwenden
    
    Jetzt können Sie eine Kopie des existierenden Modells mittels `.model_copy()` erstellen, wobei Sie dem `update`-Parameter ein `dict` mit den zu ändernden Daten übergeben.
    
    /// info
    
    In Pydantic v1 hieß diese Methode `.copy()`, in Pydantic v2 wurde sie deprecated (aber immer noch unterstützt) und in `.model_copy()` umbenannt.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  2. docs/pt/docs/tutorial/body-updates.md

    /// info | Informação
    
    No Pydantic v1, o método era chamado `.copy()`, ele foi depreciado (mas ainda suportado) no Pydantic v2, e renomeado para `.model_copy()`.
    
    Os exemplos aqui usam `.copy()` para compatibilidade com o Pydantic v1, mas você deve usar `.model_copy()` com o Pydantic v2.
    
    ///
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Oct 14 09:16:06 UTC 2024
    - 6K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/body-updates.md

    Now, you can create a copy of the existing model using `.model_copy()`, and pass the `update` parameter with a `dict` containing the data to update.
    
    /// info
    
    In Pydantic v1 the method was called `.copy()`, it was deprecated (but still supported) in Pydantic v2, and renamed to `.model_copy()`.
    
    The examples here use `.copy()` for compatibility with Pydantic v1, but you should use `.model_copy()` instead if you can use Pydantic v2.
    
    ///
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  4. cmd/batch-expire.go

    						failed++
    						if oi, ok := oiCache.Get(toDelCopy[i]); ok {
    							ri.trackCurrentBucketObject(r.Bucket, *oi, false, attempts)
    						}
    						if attempts != retryAttempts {
    							// retry
    							toDel = append(toDel, toDelCopy[i])
    						}
    					} else {
    						stopFn(toDelCopy[i], nil)
    						if oi, ok := oiCache.Get(toDelCopy[i]); ok {
    							ri.trackCurrentBucketObject(r.Bucket, *oi, true, attempts)
    						}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 18 17:59:03 UTC 2024
    - 21.9K bytes
    - Viewed (0)
Back to top