- Sort Score
- Result 10 results
- Languages All
Results 571 - 580 of 1,315 for bool (0.04 sec)
-
callbacks/callmethod.go
package callbacks import ( "reflect" "gorm.io/gorm" ) func callMethod(db *gorm.DB, fc func(value interface{}, tx *gorm.DB) bool) { tx := db.Session(&gorm.Session{NewDB: true}) if called := fc(db.Statement.ReflectValue.Interface(), tx); !called { switch db.Statement.ReflectValue.Kind() { case reflect.Slice, reflect.Array: db.Statement.CurDestIndex = 0 for i := 0; i < db.Statement.ReflectValue.Len(); i++ {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Sat Feb 18 01:20:29 UTC 2023 - 846 bytes - Viewed (0) -
istioctl/pkg/writer/envoy/configdump/ecds.go
err := config.GetEcdsFilter().UnmarshalTo(c) if err != nil { return nil, fmt.Errorf("failed to retrieve TypedExtensionConfig: %v", err) } ecds = append(ecds, c) } sort.Slice(ecds, func(i, j int) bool { if ecds[i].GetTypedConfig().GetTypeUrl() == ecds[j].GetTypedConfig().GetTypeUrl() { return ecds[i].GetName() < ecds[j].GetName() }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Sat Jan 14 02:41:27 UTC 2023 - 2.6K bytes - Viewed (0) -
docs/uk/docs/index.md
from typing import Union from fastapi import FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str price: float is_offer: Union[bool, None] = None @app.get("/") def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}") def read_item(item_id: int, q: Union[str, None] = None):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 20 19:20:23 UTC 2024 - 24.2K bytes - Viewed (0) -
fastapi/openapi/utils.py
model_name_map: ModelNameMap, field_mapping: Dict[ Tuple[ModelField, Literal["validation", "serialization"]], JsonSchemaValue ], separate_input_output_schemas: bool = True, ) -> List[Dict[str, Any]]: parameters = [] flat_dependant = get_flat_dependant(dependant, skip_repeats=True) path_params = _get_flat_fields_from_params(flat_dependant.path_params)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Sep 17 18:54:10 UTC 2024 - 22.6K bytes - Viewed (0) -
cmd/admin-handlers-config-kv.go
func (bce badConfigErr) Unwrap() error { return bce.Err } type setConfigResult struct { Cfg config.Config SubSys string Dynamic bool LoggerWebhookCfgUpdated bool } // SetConfigKVHandler - PUT /minio/admin/v3/set-config-kv func (a adminAPIHandlers) SetConfigKVHandler(w http.ResponseWriter, r *http.Request) { ctx := r.Context()
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 15.7K bytes - Viewed (0) -
docs/em/docs/tutorial/extra-data-types.md
# โ ๐ฝ ๐ ๐ ๐, ๐ โ๏ธ โ๏ธ โ ๐ ๐, ๐: * `int` * `float` * `str` * `bool` โ๏ธ ๐ ๐ช โ๏ธ ๐ ๐ ๐ ๐. & ๐ ๐ โ๏ธ ๐ โ ๐ ๐ ๐: * ๐ ๐จโ๐จ ๐โ๐ฆบ. * ๐ฝ ๐ ๏ธ โช๏ธโก๏ธ ๐จ ๐จ. * ๐ฝ ๐ ๏ธ ๐จ ๐ฝ. * ๐ฝ ๐ฌ. * ๐ง โ & ๐งพ. ## ๐ ๐ฝ ๐ ๐ฅ ๐ ๐ ๐ ๐ ๐ช โ๏ธ: * `UUID`: * ๐ฉ "โญ ๐ ๐", โ ๐ ๐ ๐ฝ & โ๏ธ. * ๐จ & ๐จ ๐ ๐จ `str`. * `datetime.datetime`: * ๐ `datetime.datetime`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.6K bytes - Viewed (0) -
scripts/deploy_docs_status.py
from pydantic_settings import BaseSettings class Settings(BaseSettings): github_repository: str github_token: SecretStr deploy_url: str | None = None commit_sha: str run_id: int is_done: bool = False def main(): logging.basicConfig(level=logging.INFO) settings = Settings() logging.info(f"Using config: {settings.model_dump_json()}") g = Github(settings.github_token.get_secret_value())
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Aug 09 15:52:41 UTC 2024 - 3.1K bytes - Viewed (0) -
lib/time/mkzip.go
flag.Usage = usage flag.Parse() args := flag.Args() if len(args) != 1 || !strings.HasSuffix(args[0], ".zip") { usage() } var zb bytes.Buffer zw := zip.NewWriter(&zb) seen := make(map[string]bool) err := filepath.WalkDir(".", func(path string, d fs.DirEntry, err error) error { if d.IsDir() { return nil } data, err := os.ReadFile(path) if err != nil { log.Fatal(err) }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Mar 04 17:32:07 UTC 2024 - 2.1K bytes - Viewed (0) -
istioctl/cmd/root_test.go
// limitations under the License. package cmd import ( "bytes" "strings" "testing" "github.com/spf13/cobra" ) func checkHelpForFlag(t *testing.T, gotHelpText, flag string, wantExists bool) { t.Helper() if strings.Contains(gotHelpText, flag) != wantExists { if wantExists { t.Errorf("%q flag was expected but not found in help text", flag) } else {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Jan 15 17:59:55 UTC 2021 - 2.4K bytes - Viewed (0) -
docs/em/docs/tutorial/query-params.md
``` //// ๐ ๐ผ, ๐ข ๐ข `q` ๐ ๐ฆ, & ๐ `None` ๐ข. /// check ๐ ๐ **FastAPI** ๐ ๐ฅ ๐ ๐ โก ๐ข `item_id` โก ๐ข & `q` ๐ซ,, โซ๏ธ ๐ข ๐ข. /// ## ๐ข ๐ข ๐ ๐ ๏ธ ๐ ๐ช ๐ฃ `bool` ๐, & ๐ซ ๐ ๐: //// tab | ๐ 3๏ธโฃ.6๏ธโฃ & ๐ ```Python hl_lines="9" {!> ../../docs_src/query_params/tutorial003.py!} ``` //// //// tab | ๐ 3๏ธโฃ.1๏ธโฃ0๏ธโฃ & ๐
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4.4K bytes - Viewed (0)