Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 23 for workaround (0.16 seconds)

  1. tests/test_depends_hashable.py

    # This is more or less a workaround to make Depends and Security hashable
    # as other tools that use them depend on that
    # Ref: https://github.com/fastapi/fastapi/pull/14320
    
    from fastapi import Depends, Security
    
    
    def dep():
        pass
    
    
    def test_depends_hashable():
        dep()  # just for coverage
        d1 = Depends(dep)
        d2 = Depends(dep)
        d3 = Depends(dep, scope="function")
        d4 = Depends(dep, scope="function")
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Nov 19 16:50:18 GMT 2025
    - 596 bytes
    - Click Count (0)
  2. build-logic/buildquality/src/main/kotlin/gradlebuild/incubation/tasks/IncubatingApiReportTask.kt

    import org.gradle.api.tasks.InputFiles
    import org.gradle.api.tasks.OutputFile
    import org.gradle.api.tasks.PathSensitive
    import org.gradle.api.tasks.PathSensitivity
    import org.gradle.api.tasks.TaskAction
    // Using star import to workaround https://youtrack.jetbrains.com/issue/KTIJ-24390
    import org.gradle.kotlin.dsl.*
    import org.gradle.workers.WorkerExecutor
    import javax.inject.Inject
    
    
    @CacheableTask
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Jan 19 11:30:48 GMT 2026
    - 2.5K bytes
    - Click Count (0)
  3. build-logic/buildquality/src/main/kotlin/gradlebuild.arch-test.gradle.kts

                            classpath += sourceSets["main"].output.classesDirs
                            val excludePatterns = packageCyclesExtension.excludePatterns
                            doFirst {
                                // workaround for https://github.com/gradle/gradle/issues/12247
                                systemProperty("package.cycle.exclude.patterns", excludePatterns.get().joinToString(","))
                            }
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Tue Feb 10 08:11:56 GMT 2026
    - 3.4K bytes
    - Click Count (0)
  4. build-logic/src/main/kotlin/okhttp.publish-conventions.gradle.kts

      ignoredPackages += "okhttp3.brotli.internal"
      ignoredPackages += "okhttp3.sse.internal"
      ignoredPackages += "okhttp3.tls.internal"
    }
    
    if (project.name == "okhttp") {
      // Workaround for https://github.com/Kotlin/binary-compatibility-validator/issues/312
      val apiBuild = tasks.register<KotlinApiBuildTask>("androidApiBuild") {
        outputApiFile = project.layout.buildDirectory.file("${this.name}/okhttp.api")
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:00:38 GMT 2026
    - 2.6K bytes
    - Click Count (0)
  5. build-logic-commons/basics/src/main/kotlin/gradlebuild.minify.gradle.kts

        }
        afterEvaluate {
            // Without afterEvaluate, configurations.all runs before the configurations' roles are set.
            // This is yet another reason we need configuration factory methods.
            // workaround for https://github.com/gradle/gradle/issues/12459
            // note: constraints can't be used here because they end up in gradle module metadata
            val attributesFactory = gradle.serviceOf<AttributesFactory>()
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Mar 12 18:27:10 GMT 2026
    - 5.8K bytes
    - Click Count (0)
  6. build-logic-commons/module-identity/src/main/kotlin/gradlebuild/identity/tasks/BuildReceipt.kt

    import org.gradle.api.provider.Provider
    import org.gradle.api.tasks.Input
    import org.gradle.api.tasks.Optional
    import org.gradle.api.tasks.OutputDirectory
    import org.gradle.api.tasks.TaskAction
    // Using star import to workaround https://youtrack.jetbrains.com/issue/KTIJ-24390
    import org.gradle.kotlin.dsl.*
    import org.gradle.work.DisableCachingByDefault
    import java.text.SimpleDateFormat
    import java.util.Date
    import java.util.Properties
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Mar 25 08:51:12 GMT 2026
    - 4.1K bytes
    - Click Count (0)
  7. build-logic/buildquality/src/test/kotlin/gradlebuild/testcleanup/TestFilesCleanupServiceTest.kt

        fun run(vararg args: String) = GradleRunner.create()
            .withProjectDir(projectDir)
            .withTestKitDir(testKitDir)
            .withPluginClasspath()
            .forwardOutput()
            /*
            This is a workaround to use `--no-daemon` with TestKit.
            Without this, daemon may keep writing to project dir after the test finishes, resulting in errors like:
    
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Tue Feb 10 00:16:44 GMT 2026
    - 11.6K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/util/concurrent/ListenableFuture.java

     *
     * <p>Occasionally, an API will return a plain {@code Future} and it will be impossible to change
     * the return type. For this case, we provide a more expensive workaround in {@code
     * JdkFutureAdapters}. However, when possible, it is more efficient and reliable to create a {@code
     * ListenableFuture} directly.
     *
     * @author Sven Mawson
     * @author Nishant Thakkar
     * @since 1.0
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 8K bytes
    - Click Count (0)
  9. build-logic-commons/publishing/src/main/kotlin/gradlebuild.kotlin-dsl-plugin-bundle.gradle.kts

        }
        outgoing {
            artifact(futurePluginVersionsDestDir) {
                builtBy(writeFuturePluginVersions)
            }
        }
    }
    
    // Workaround for https://github.com/gradle/gradlecom/issues/627
    configurations.archives.get().allArtifacts.removeIf {
        it.name != "plugins"
    }
    
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Mar 13 11:01:20 GMT 2026
    - 6.2K bytes
    - Click Count (0)
  10. futures/listenablefuture1/src/com/google/common/util/concurrent/ListenableFuture.java

     *
     * <p>Occasionally, an API will return a plain {@code Future} and it will be impossible to change
     * the return type. For this case, we provide a more expensive workaround in {@code
     * JdkFutureAdapters}. However, when possible, it is more efficient and reliable to create a {@code
     * ListenableFuture} directly.
     *
     * @author Sven Mawson
     * @author Nishant Thakkar
     * @since 1.0
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 8K bytes
    - Click Count (0)
Back to Top