Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for IsInt (0.03 seconds)

  1. tests/test_tutorial/test_sql_databases/test_tutorial002.py

            assert response.json() == snapshot(
                [
                    {"name": "Dead Pond", "age": 30, "id": IsInt()},
                    {"name": "Spider-Boy", "age": 18, "id": IsInt()},
                    {"name": "Rusty-Man", "age": None, "id": IsInt()},
                ]
            )
    
            response = client.get("/heroes/?offset=1&limit=1")
            assert response.status_code == 200, response.text
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 17.9K bytes
    - Click Count (0)
  2. tests/test_tutorial/test_sql_databases/test_tutorial001.py

                    {
                        "name": "Dead Pond",
                        "age": 30,
                        "id": IsInt(),
                        "secret_name": "Dive Wilson",
                    },
                    {
                        "name": "Spider-Boy",
                        "age": 18,
                        "id": IsInt(),
                        "secret_name": "Pedro Parqueador",
                    },
                    {
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 14K bytes
    - Click Count (0)
  3. doc/go_spec.html

    </p>
    
    <pre>
    v := x  // x is evaluated exactly once
    if v == nil {
    	i := v                                 // type of i is type of x (interface{})
    	printString("x is nil")
    } else if i, isInt := v.(int); isInt {
    	printInt(i)                            // type of i is int
    } else if i, isFloat64 := v.(float64); isFloat64 {
    	printFloat64(i)                        // type of i is float64
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Tue Dec 02 23:07:19 GMT 2025
    - 286.5K bytes
    - Click Count (1)
Back to Top