Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for some_arg (0.16 sec)

  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()
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Jun 28 18:13:30 GMT 2020
    - 457 bytes
    - Viewed (0)
  2. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/NullabilityChangesTest.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
                    }
                """
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 9.1K bytes
    - Viewed (0)
Back to top