Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 211 for BOOL (0.03 sec)

  1. tests/test_dependency_wrapped.py

    # Sync wrapper
    
    
    @noop_wrap
    def wrapped_dependency() -> bool:
        return True
    
    
    @noop_wrap
    def wrapped_gen_dependency() -> Generator[bool, None, None]:
        yield True
    
    
    @noop_wrap
    async def async_wrapped_dependency() -> bool:
        return True
    
    
    @noop_wrap
    async def async_wrapped_gen_dependency() -> AsyncGenerator[bool, None]:
        yield True
    
    
    @app.get("/wrapped-dependency/")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  2. fastapi/_compat/shared.py

    ) -> bool:
        try:
            return isinstance(cls, type) and issubclass(cls, class_or_tuple)  # type: ignore[arg-type]
        except TypeError:  # pragma: no cover
            if isinstance(cls, WithArgsTypes):
                return False
            raise  # pragma: no cover
    
    
    def _annotation_is_sequence(annotation: Union[type[Any], None]) -> bool:
        if lenient_issubclass(annotation, (str, bytes)):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  3. internal/s3select/sql/value.go

    }
    
    // ToBool returns the bool value; second return value refers to if the bool
    // conversion succeeded.
    func (v Value) ToBool() (val bool, ok bool) {
    	val, ok = v.value.(bool)
    	return val, ok
    }
    
    // ToTimestamp returns the timestamp value if present.
    func (v Value) ToTimestamp() (t time.Time, ok bool) {
    	t, ok = v.value.(time.Time)
    	return t, ok
    }
    
    // ToBytes returns the value if byte-slice.
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 20.4K bytes
    - Viewed (0)
  4. internal/lsync/lrwmutex_test.go

    	if m.GetRLock(ctx, "", "", time.Second) {
    		clocked <- true
    		<-cunlock
    		m.RUnlock()
    		cdone <- true
    	}
    }
    
    // Borrowed from rwmutex_test.go
    func doTestParallelReaders(numReaders, gomaxprocs int) {
    	runtime.GOMAXPROCS(gomaxprocs)
    	m := NewLRWMutex()
    
    	clocked := make(chan bool)
    	cunlock := make(chan bool)
    	cdone := make(chan bool)
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  5. cmd/local-locker.go

    	Writer          bool   // Bool whether write or read lock.
    	UID             string // UID to uniquely identify request of client.
    	Timestamp       int64  // Timestamp set at the time of initialization.
    	TimeLastRefresh int64  // Timestamp for last lock refresh.
    	Source          string // Contains line, function and filename requesting the lock.
    	Group           bool   // indicates if it was a group lock.
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 12K bytes
    - Viewed (0)
  6. fastapi/openapi/models.py

    
    class ParameterBase(BaseModelWithConfig):
        description: Optional[str] = None
        required: Optional[bool] = None
        deprecated: Optional[bool] = None
        # Serialization rules for simple scenarios
        style: Optional[str] = None
        explode: Optional[bool] = None
        allowReserved: Optional[bool] = None
        schema_: Optional[Union[Schema, Reference]] = Field(default=None, alias="schema")
        example: Optional[Any] = None
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  7. fastapi/dependencies/models.py

        background_tasks_param_name: Optional[str] = None
        security_scopes_param_name: Optional[str] = None
        own_oauth_scopes: Optional[list[str]] = None
        parent_oauth_scopes: Optional[list[str]] = None
        use_cache: bool = True
        path: Optional[str] = None
        scope: Union[Literal["function", "request"], None] = None
    
        @cached_property
        def oauth_scopes(self) -> list[str]:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  8. fastapi/params.py

                ),
            ] = None,
            discriminator: Union[str, None] = None,
            strict: Union[bool, None] = _Unset,
            multiple_of: Union[float, None] = _Unset,
            allow_inf_nan: Union[bool, None] = _Unset,
            max_digits: Union[int, None] = _Unset,
            decimal_places: Union[int, None] = _Unset,
            examples: Optional[list[Any]] = None,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 26.3K bytes
    - Viewed (0)
  9. cmd/iam-store.go

    	loadMappedPolicy(ctx context.Context, name string, userType IAMUserType, isGroup bool, m *xsync.MapOf[string, MappedPolicy]) error
    	loadMappedPolicyWithRetry(ctx context.Context, name string, userType IAMUserType, isGroup bool, m *xsync.MapOf[string, MappedPolicy], retries int) error
    	loadMappedPolicies(ctx context.Context, userType IAMUserType, isGroup bool, m *xsync.MapOf[string, MappedPolicy]) error
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 87.1K bytes
    - Viewed (0)
  10. cmd/bucket-replication-utils.go

    	ResyncTimestamp       string
    	ReplicationResynced   bool // true only if resync attempted for this target
    	endpoint              string
    	secure                bool
    	Err                   error // replication error if any
    }
    
    // Empty returns true for a target if arn is empty
    func (rt replicatedTargetInfo) Empty() bool {
    	return rt.Arn == ""
    }
    
    type replicatedInfos struct {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 26.1K bytes
    - Viewed (0)
Back to top