@@ -386,8 +386,8 @@ def from_schema(cls, schema: "Schema") -> type["Resource[Any]"]:
386386 def _prepare_model_dump (
387387 self ,
388388 scim_ctx : Context | None = Context .DEFAULT ,
389- attributes : list [str ] | None = None ,
390- excluded_attributes : list [str ] | None = None ,
389+ attributes : list [str | Path [ Any ] ] | None = None ,
390+ excluded_attributes : list [str | Path [ Any ] ] | None = None ,
391391 ** kwargs : Any ,
392392 ) -> dict [str , Any ]:
393393 kwargs = super ()._prepare_model_dump (scim_ctx , ** kwargs )
@@ -410,8 +410,8 @@ def model_dump(
410410 self ,
411411 * args : Any ,
412412 scim_ctx : Context | None = Context .DEFAULT ,
413- attributes : list [str ] | None = None ,
414- excluded_attributes : list [str ] | None = None ,
413+ attributes : list [str | Path [ Any ] ] | None = None ,
414+ excluded_attributes : list [str | Path [ Any ] ] | None = None ,
415415 ** kwargs : Any ,
416416 ) -> dict [str , Any ]:
417417 """Create a model representation that can be included in SCIM messages by using Pydantic :code:`BaseModel.model_dump`.
@@ -436,8 +436,8 @@ def model_dump_json(
436436 self ,
437437 * args : Any ,
438438 scim_ctx : Context | None = Context .DEFAULT ,
439- attributes : list [str ] | None = None ,
440- excluded_attributes : list [str ] | None = None ,
439+ attributes : list [str | Path [ Any ] ] | None = None ,
440+ excluded_attributes : list [str | Path [ Any ] ] | None = None ,
441441 ** kwargs : Any ,
442442 ) -> str :
443443 """Create a JSON model representation that can be included in SCIM messages by using Pydantic :code:`BaseModel.model_dump_json`.
0 commit comments