Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 173 for Awaitable (0.22 sec)

  1. tests/test_dependency_contextvars.py

    from contextvars import ContextVar
    from typing import Any, Awaitable, Callable, Dict, Optional
    
    from fastapi import Depends, FastAPI, Request, Response
    from fastapi.testclient import TestClient
    
    legacy_request_state_context_var: ContextVar[Optional[Dict[str, Any]]] = ContextVar(
        "legacy_request_state_context_var", default=None
    )
    
    app = FastAPI()
    
    
    async def set_up_request_state_dependency():
        request_state = {"user": "deadpond"}
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Feb 17 12:40:12 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  2. fastapi/datastructures.py

            Any next read or write will be done from that position.
    
            To be awaitable, compatible with async, this is run in threadpool.
            """
            return await super().seek(offset)
    
        async def close(self) -> None:
            """
            Close the file.
    
            To be awaitable, compatible with async, this is run in threadpool.
            """
            return await super().close()
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 02 02:48:51 UTC 2024
    - 5.6K bytes
    - Viewed (1)
  3. fastapi/applications.py

    from enum import Enum
    from typing import (
        Any,
        Awaitable,
        Callable,
        Coroutine,
        Dict,
        List,
        Optional,
        Sequence,
        Type,
        TypeVar,
        Union,
    )
    
    from fastapi import routing
    from fastapi.datastructures import Default, DefaultPlaceholder
    from fastapi.exception_handlers import (
        http_exception_handler,
        request_validation_exception_handler,
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 18 00:48:03 UTC 2024
    - 172.2K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/report/IncompatibleTypeReferenceReporter.java

        private final boolean writable;
        private final Iterable<String> candidateTypes;
    
        public IncompatibleTypeReferenceReporter(String creator, String path, String type, String description, boolean writable, Iterable<String> candidateTypes) {
            this.creator = creator;
            this.path = path;
            this.type = type;
            this.description = description;
            this.writable = writable;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/asm/testdata/arm64error.s

    	MSR	R6, AMEVTYPER02_EL0                              // ERROR "system register is not writable"
    	MSR	R6, AMEVTYPER03_EL0                              // ERROR "system register is not writable"
    	MSR	R6, AMEVTYPER04_EL0                              // ERROR "system register is not writable"
    	MSR	R6, AMEVTYPER05_EL0                              // ERROR "system register is not writable"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 03:28:17 UTC 2023
    - 37.8K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/core/NodeInitializerContext.java

            private final boolean writable;
            private final boolean declaredAsHavingUnmanagedType;
            private final ModelType<?> declaringType;
    
            private PropertyContext(String name, ModelType<?> type, boolean writable, boolean declaredAsHavingUnmanagedType, ModelType<?> declaringType) {
                this.name = name;
                this.type = type;
                this.writable = writable;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/test_fuzz_modcache.txt

    # (See https://golang.org/issue/48495.)
    
    [short] skip
    
    # Set -modcacherw so that the test behaves the same regardless of whether the
    # module cache is writable. (For example, on some platforms it can always be
    # written if the user is running as root.) At one point, a failing fuzz test
    # in a writable module cache would corrupt module checksums in the cache.
    env GOFLAGS=-modcacherw
    
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 20:43:39 UTC 2021
    - 1.8K bytes
    - Viewed (0)
  8. src/cmd/go/internal/toolchain/umask_unix.go

    	syscall.Umask(m)    // restore bits
    	if m&0o22 == 0o22 { // group and world are unwritable by default
    		return 0o700
    	}
    	if m&0o2 == 0o2 { // group is writable by default, but not world
    		return 0o770
    	}
    	return 0o777 // everything is writable by default
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 20 15:44:08 UTC 2023
    - 896 bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/registry/ModelBinding.java

        final BindingPredicate predicate;
        final ModelRuleDescriptor referrer;
        final boolean writable;
        protected ModelNodeInternal boundTo;
    
        protected ModelBinding(ModelRuleDescriptor referrer, BindingPredicate predicate, boolean writable) {
            this.predicate = predicate;
            this.referrer = referrer;
            this.writable = writable;
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/binding/ManagedProperty.java

        private final ModelType<T> type;
        private final boolean writable;
        private final boolean declaredAsHavingUnmanagedType;
        private final boolean internal;
    
        public ManagedProperty(String name, ModelType<T> type, boolean writable, boolean declaredAsHavingUnmanagedType, boolean internal) {
            this.name = name;
            this.type = type;
            this.writable = writable;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.8K bytes
    - Viewed (0)
Back to top