Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for some_arg (0.06 seconds)

  1. tests/test_callable_endpoint.py

    from fastapi.testclient import TestClient
    
    
    def main(some_arg, q: Optional[str] = None):
        return {"some_arg": some_arg, "q": q}
    
    
    endpoint = partial(main, "foo")
    
    app = FastAPI()
    
    app.get("/")(endpoint)
    
    
    client = TestClient(app)
    
    
    def test_partial():
        response = client.get("/?q=bar")
        data = response.json()
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sun Jun 28 18:13:30 GMT 2020
    - 457 bytes
    - Click Count (0)
  2. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/KotlinNullabilityChangesTest.kt

                    class Source {
                        val someVal: String = "some"
                        var someVar: String = "some"
                        fun foo(): String = "bar"
                    }
                """,
                v2 = """
                    class Source {
                        val someVal: String? = null
                        var someVar: String? = null
                        fun foo(): String? = null
                    }
                """
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Feb 04 09:55:47 GMT 2025
    - 5K bytes
    - Click Count (0)
Back to Top