Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 175 of 175 for IsDict (0.07 sec)

  1. tests/test_extra_routes.py

                            "price": IsDict(
                                {
                                    "title": "Price",
                                    "anyOf": [{"type": "number"}, {"type": "null"}],
                                }
                            )
                            # TODO: remove when deprecating Pydantic v1
                            | IsDict({"title": "Price", "type": "number"}),
                        },
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  2. tests/test_application.py

                                "schema": IsDict(
                                    {
                                        "anyOf": [{"type": "string"}, {"type": "null"}],
                                        "title": "Item Id",
                                    }
                                )
                                # TODO: remove when deprecating Pydantic v1
                                | IsDict({"title": "Item Id", "type": "string"}),
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 21:56:59 UTC 2024
    - 52.2K bytes
    - Viewed (0)
  3. fastapi/encoders.py

                # TODO: remove when deprecating Pydantic v1
                custom_encoder=encoders,
                sqlalchemy_safe=sqlalchemy_safe,
            )
        if dataclasses.is_dataclass(obj):
            obj_dict = dataclasses.asdict(obj)
            return jsonable_encoder(
                obj_dict,
                include=include,
                exclude=exclude,
                by_alias=by_alias,
                exclude_unset=exclude_unset,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 21:56:59 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  4. cmd/admin-handlers.go

    	hostAnonymizer := createHostAnonymizer()
    
    	anonParam := query.Get(anonymizeParam)
    	// anonAddr - Anonymizes hosts in given input string
    	// (only if the anonymize param is set to srict).
    	anonAddr := func(addr string) string {
    		if anonParam != anonymizeStrict {
    			return addr
    		}
    		newAddr, found := hostAnonymizer[addr]
    		if found {
    			return newAddr
    		}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 99.7K bytes
    - Viewed (0)
  5. fastapi/routing.py

                    exclude_none=exclude_none,
                )
                for k, v in res.items()
            }
        elif dataclasses.is_dataclass(res):
            return dataclasses.asdict(res)
        return res
    
    
    def _merge_lifespan_context(
        original_context: Lifespan[Any], nested_context: Lifespan[Any]
    ) -> Lifespan[Any]:
        @asynccontextmanager
        async def merged_lifespan(
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 12 09:44:57 UTC 2024
    - 172.1K bytes
    - Viewed (0)
Back to top