- Sort Score
- Num 10 results
- Language All
Results 241 - 250 of 1,285 for bool (0.02 seconds)
-
fastapi/datastructures.py
if the overridden default value was truthy. """ def __init__(self, value: Any): self.value = value def __bool__(self) -> bool: return bool(self.value) def __eq__(self, o: object) -> bool: return isinstance(o, DefaultPlaceholder) and o.value == self.value DefaultType = TypeVar("DefaultType") def Default(value: DefaultType) -> DefaultType:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 5.2K bytes - Click Count (0) -
docs_src/python_types/tutorial005_py310.py
def get_items(item_a: str, item_b: int, item_c: float, item_d: bool, item_e: bytes):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 135 bytes - Click Count (0) -
callbacks/helper_test.go
package callbacks import ( "reflect" "testing" "gorm.io/gorm" "gorm.io/gorm/clause" ) func TestLoadOrStoreVisitMap(t *testing.T) { var vm visitMap var loaded bool type testM struct { Name string } t1 := testM{Name: "t1"} t2 := testM{Name: "t2"} t3 := testM{Name: "t3"} vm = make(visitMap) if loaded = loadOrStoreVisitMap(&vm, reflect.ValueOf(&t1)); loaded {
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Tue Mar 05 02:22:57 GMT 2024 - 3.4K bytes - Click Count (0) -
internal/event/target/mqtt.go
return target.store } // IsActive - Return true if target is up and active func (target *MQTTTarget) IsActive() (bool, error) { if err := target.init(); err != nil { return false, err } return target.isActive() } func (target *MQTTTarget) isActive() (bool, error) { if !target.client.IsConnectionOpen() { return false, store.ErrNotConnected } return true, nil }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Sep 06 23:06:30 GMT 2024 - 8.2K bytes - Click Count (0) -
src/bufio/example_test.go
const input = "1234 5678 1234567901234567890" scanner := bufio.NewScanner(strings.NewReader(input)) // Create a custom split function by wrapping the existing ScanWords function. split := func(data []byte, atEOF bool) (advance int, token []byte, err error) { advance, token, err = bufio.ScanWords(data, atEOF) if err == nil && token != nil { _, err = strconv.ParseInt(string(token), 10, 32) } return }
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Fri Nov 01 21:52:12 GMT 2024 - 5.5K bytes - Click Count (0) -
schema/model_test.go
Team []*User `gorm:"foreignkey:ManagerID"` Languages []*tests.Language `gorm:"many2many:UserSpeak"` Friends []*User `gorm:"many2many:user_friends"` Active *bool } type ( mytime time.Time myint int mybool = bool ) type AdvancedDataTypeUser struct { ID sql.NullInt64 Name *sql.NullString Birthday sql.NullTime RegisteredAt mytime DeletedAt *mytime
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Thu Jan 06 07:02:53 GMT 2022 - 1.1K bytes - Click Count (0) -
internal/hash/checksum.go
func (c ChecksumType) FullObjectRequested() bool { return c&(ChecksumFullObject) == ChecksumFullObject || c.Is(ChecksumCRC64NVME) } // IsMultipartComposite returns true if the checksum is multipart and full object was not requested. func (c ChecksumType) IsMultipartComposite() bool { return c.Is(ChecksumMultipart) && !c.FullObjectRequested() }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 22 14:15:21 GMT 2025 - 18.3K bytes - Click Count (0) -
cmd/xl-storage-free-version.go
} // FreeVersion returns true if j represents a free-version, false otherwise. func (j xlMetaV2DeleteMarker) FreeVersion() bool { _, ok := j.MetaSys[ReservedMetadataPrefixLower+freeVersion] return ok } // FreeVersion returns true if j represents a free-version, false otherwise. func (j xlMetaV2Version) FreeVersion() bool { if j.Type == DeleteType { return j.DeleteMarker.FreeVersion() } return false }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sat Mar 02 05:11:03 GMT 2024 - 3.4K bytes - Click Count (0) -
cmd/metacache-set.go
InclDeleted bool // Scan recursively. // If false only main directory will be scanned. // Should always be true if Separator is n SlashSeparator. Recursive bool // Separator to use. Separator string // Create indicates that the lister should not attempt to load an existing cache. Create bool // Include pure directories. IncludeDirectories bool
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 30.7K bytes - Click Count (0) -
src/cmd/api/testdata/src/pkg/p1/p1.go
Public *int private *int PublicTime Time } // Deprecated: use URI. type URL struct{} type EmbedURLPtr struct { *URL } type S2 struct { // Deprecated: use T. S Extra bool } var X0 int64 var ( Y int X I ) type Namer interface { Name() string } type I interface { Namer ptwo.Twoer Set(name string, balance int64)Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Fri Dec 02 16:29:41 GMT 2022 - 3.3K bytes - Click Count (0)