Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 306 for sequence (0.23 sec)

  1. tests/test_invalid_sequence_param.py

    from typing import Dict, List, Optional, Tuple
    
    import pytest
    from fastapi import FastAPI, Query
    from pydantic import BaseModel
    
    
    def test_invalid_sequence():
        with pytest.raises(AssertionError):
            app = FastAPI()
    
            class Item(BaseModel):
                title: str
    
            @app.get("/items/")
            def read_items(q: List[Item] = Query(default=None)):
                pass  # pragma: no cover
    
    
    Python
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Fri May 13 23:38:22 GMT 2022
    - 1.2K bytes
    - Viewed (0)
  2. maven-core/src/site/resources/design/2.1-lifecycle-refactor-sequence-diagram.png

    2.1-lifecycle-refactor-sequence-diagram.png...
    PNG Image
    - Registered: Sun Apr 14 03:35:08 GMT 2024
    - Last Modified: Tue Mar 20 21:40:59 GMT 2007
    - 85.3K bytes
    - Viewed (0)
  3. build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/support/ClassBytesRepository.kt

            }
    
        private
        fun sourceNamesFromJar(jar: File): Sequence<String> =
            openJarFile(jar).run {
                entries().asSequence()
                    .filter { it.name.isClassFilePath }
                    .map { kotlinSourceNameOf(it.name) }
            }
    
        private
        fun sourceNamesFromDir(dir: File): Sequence<String> =
            dir.walkTopDown()
                .filter { it.name.isClassFilePath }
    Plain Text
    - Registered: Wed Feb 28 11:36:09 GMT 2024
    - Last Modified: Sat Sep 30 16:17:27 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Utf8.java

       * time and space.
       *
       * @throws IllegalArgumentException if {@code sequence} contains ill-formed UTF-16 (unpaired
       *     surrogates)
       */
      public static int encodedLength(CharSequence sequence) {
        // Warning to maintainers: this implementation is highly optimized.
        int utf16Length = sequence.length();
        int utf8Length = utf16Length;
        int i = 0;
    
        // This loop optimizes for pure ASCII.
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Apr 10 14:11:51 GMT 2023
    - 7K bytes
    - Viewed (0)
  5. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/scopes/KtFe10ScopeResolution.kt

        override fun getCallableSymbols(names: Collection<Name>): Sequence<KtCallableSymbol> = withValidityAssertion {
            if (names.isEmpty()) return emptySequence()
            val namesSet = names.toSet()
            return getCallableSymbols { it in namesSet }
        }
    
        override fun getClassifierSymbols(nameFilter: KtScopeNameFilter): Sequence<KtClassifierSymbol> = withValidityAssertion {
            return scope
    Plain Text
    - Registered: Fri Apr 19 08:18:09 GMT 2024
    - Last Modified: Tue Oct 10 13:38:00 GMT 2023
    - 5.7K bytes
    - Viewed (0)
  6. cmd/admin-heal-ops.go

    	// was this heal sequence force started?
    	forceStarted bool
    
    	// heal settings applied to this heal sequence
    	settings madmin.HealOpts
    
    	// current accumulated status of the heal sequence
    	currentStatus healSequenceStatus
    
    	// channel signaled by background routine when traversal has
    	// completed
    	traverseAndHealDoneCh chan error
    
    	// canceler to cancel heal sequence.
    	cancelCtx context.CancelFunc
    Go
    - Registered: Sun Apr 14 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 25.1K bytes
    - Viewed (1)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirResolveExtensionInfoProvider.kt

            crossinline nameFilter: KtScopeNameFilter,
            crossinline getDeclarationsByProvider: (LLFirResolveExtensionToolDeclarationProvider) -> Sequence<D>,
        ): Sequence<S> = sequence {
            for (tool in tools) {
                for (declaration in getDeclarationsByProvider(tool.declarationProvider)) {
                    val declarationName = declaration.nameAsName ?: continue
    Plain Text
    - Registered: Fri Apr 19 08:18:09 GMT 2024
    - Last Modified: Wed Apr 17 17:23:42 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/CharMatcher.java

       * sequence. Returns a bogus matcher if the sequence contains supplementary characters.
       */
      public static CharMatcher anyOf(final CharSequence sequence) {
        switch (sequence.length()) {
          case 0:
            return none();
          case 1:
            return is(sequence.charAt(0));
          case 2:
            return isEither(sequence.charAt(0), sequence.charAt(1));
          default:
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.7K bytes
    - Viewed (0)
  9. fastapi/_compat.py

            return is_pv1_scalar_field(field)
    
        def is_sequence_field(field: ModelField) -> bool:
            return field.shape in sequence_shapes or _annotation_is_sequence(field.type_)  # type: ignore[attr-defined]
    
        def is_scalar_sequence_field(field: ModelField) -> bool:
            return is_pv1_scalar_sequence_field(field)
    
        def is_bytes_field(field: ModelField) -> bool:
    Python
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Tue Dec 12 00:22:47 GMT 2023
    - 22.5K bytes
    - Viewed (0)
  10. build-logic-commons/basics/src/test/kotlin/gradlebuild/basics/tasks/PackageListGeneratorIntegrationTest.kt

            return sequenceOf(directory)
        }
    
        private
        fun someClassesInDefaultPackage(): Sequence<Path> {
            val directory = projectDir.resolve("classes-default")
    
            DEFAULT_EXCLUDES_FOR_TEST.forEachIndexed { i, pkg ->
                touchFile(directory.resolve("$pkg/Foo$i.class"))
            }
    
            return sequenceOf(directory)
        }
    
        private
    Plain Text
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Sat Sep 30 16:17:28 GMT 2023
    - 4.8K bytes
    - Viewed (0)
Back to top