Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for model_copy (0.04 sec)

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

    ### Використання параметра `update` у Pydantic
    
    Тепер Ви можете створити копію наявної моделі за допомогою `.model_copy()`, і передати параметр `update` з `dict` , який містить дані для оновлення.
    
    /// info | Інформація
    
    У Pydantic v1 метод називався `.copy()`, він був застарілий (але все ще підтримується) у Pydantic v2, і був перейменований у `.model_copy()`.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Jun 30 06:00:04 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  2. 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 Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  3. 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 Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Apr 22 11:16:32 UTC 2025
    - 23K bytes
    - Viewed (0)
Back to top