Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 771 - 780 of 1,609 for samme (0.04 seconds)

  1. docs/en/docs/tutorial/stream-json-lines.md

    ///
    
    ### Non-async *path operation functions* { #non-async-path-operation-functions }
    
    You can also use regular `def` functions (without `async`), and use `yield` the same way.
    
    FastAPI will make sure it's run correctly so that it doesn't block the event loop.
    
    As in this case the function is not async, the right return type would be `Iterable[Item]`:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 4.3K bytes
    - Click Count (0)
  2. docs/pt/docs/how-to/separate-openapi-schemas.md

    ///
    
    {* ../../docs_src/separate_openapi_schemas/tutorial002_py310.py hl[10] *}
    
    ### Mesmo Esquema para Modelos de Entrada e Saída na Documentação { #same-schema-for-input-and-output-models-in-docs }
    
    E agora haverá um único esquema para entrada e saída para o modelo, apenas `Item`, e ele terá `description` como **não obrigatório**:
    
    <div class="screenshot">
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Jan 20 20:40:17 GMT 2026
    - 4.8K bytes
    - Click Count (0)
  3. docs/zh/docs/tutorial/dependencies/sub-dependencies.md

    query_extractor(["query_extractor"])
    query_or_cookie_extractor(["query_or_cookie_extractor"])
    
    read_query["/items/"]
    
    query_extractor --> query_or_cookie_extractor --> read_query
    ```
    
    ## 多次使用同一个依赖项 { #using-the-same-dependency-multiple-times }
    
    如果在同一个*路径操作* 多次声明了同一个依赖项,例如,多个依赖项共用一个子依赖项,**FastAPI** 在处理同一请求时,只调用一次该子依赖项。
    
    FastAPI 不会为同一个请求多次调用同一个依赖项,而是把依赖项的返回值进行<dfn title="用于存储已计算/生成的值,以便复用而无需再次计算的实用工具/系统">「缓存」</dfn>,并把它传递给同一请求中所有需要使用该返回值的「依赖项」。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 13 13:37:57 GMT 2026
    - 3.8K bytes
    - Click Count (0)
  4. fastapi/dependencies/models.py

                return False  # pragma: no cover
            unwrapped = _unwrapped_call(self.call)
            return isinstance(unwrapped, SecurityBase)
    
        # Mainly to get the type of SecurityBase, but it's the same self.call
        @cached_property
        def _security_scheme(self) -> SecurityBase:
            unwrapped = _unwrapped_call(self.call)
            assert isinstance(unwrapped, SecurityBase)
            return unwrapped
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 11 18:41:21 GMT 2026
    - 7.1K bytes
    - Click Count (0)
  5. fastapi/sse.py

        def _check_data_exclusive(self) -> "ServerSentEvent":
            if self.data is not None and self.raw_data is not None:
                raise ValueError(
                    "Cannot set both 'data' and 'raw_data' on the same "
                    "ServerSentEvent. Use 'data' for JSON-serialized payloads "
                    "or 'raw_data' for pre-formatted strings."
                )
            return self
    
    
    def format_sse_event(
        *,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 09:21:52 GMT 2026
    - 6.2K bytes
    - Click Count (0)
  6. internal/mountinfo/mountinfo_linux.go

    	ss1, ok1 := s1.Sys().(*syscall.Stat_t)
    	ss2, ok2 := s2.Sys().(*syscall.Stat_t)
    	return ok1 && ok2 &&
    		// path/.. on a different device as path
    		(ss1.Dev != ss2.Dev ||
    			// path/.. is the same i-node as path - this check is for bind mounts.
    			ss1.Ino == ss2.Ino)
    }
    
    // CheckCrossDevice - check if any list of paths has any sub-mounts at /proc/mounts.
    func CheckCrossDevice(absPaths []string) error {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Feb 18 16:25:55 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  7. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/RestTestTransformer.java

     */
    public class RestTestTransformer {
        /**
         * Transforms a REST test based on the requested {@link RestTestTransform}'s
         *
         * @param tests           The REST tests from the same file. Uses linked list so we can easily add to the beginning of the list.
         * @param transformations The set of transformations to perform against the test
         * @return the transformed tests
         */
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Jul 12 17:42:01 GMT 2021
    - 8.1K bytes
    - Click Count (0)
  8. build-tools-internal/src/main/resources/checkstyle.xml

          lines up with the directory structure. -->
        <module name="PackageDeclaration" />
    
        <!-- Checks that a local variable or a parameter does not shadow a field that is defined in the same class. -->
        <!-- Disabled until existing violations are fixed -->
        <!--
        <module name="HiddenField">
            <property name="ignoreConstructorParameter" value="true" />
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Sep 13 12:48:46 GMT 2021
    - 6K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/math/MathPreconditionsTest.java

        /*
         * Don't bother testing. All non-primitive parameters are used only to construct error messages.
         * We never want to pass null for them, so we haven't annotated them to say that null is
         * allowed. But at the same time, it seems wasteful to bother inserting the checkNotNull calls
         * that NullPointerTester wants.
         *
         * (This empty method disables the automatic null testing provided by PackageSanityTests.)
         */
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 05:21:26 GMT 2026
    - 8.1K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/collect/EvictingQueue.java

      public Object[] toArray() {
        /*
         * If we could, we'd declare the no-arg `Collection.toArray()` to return "Object[] but elements
         * have the same nullness as E." Since we can't, we declare it to return nullable elements, and
         * we can override it in our non-null-guaranteeing subtypes to present a better signature to
         * their users.
         *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Feb 13 17:34:21 GMT 2025
    - 4.6K bytes
    - Click Count (0)
Back to Top