Skip to content

Commit

Permalink
feat: Updated sdks/python/julep/managers/user.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] committed Apr 11, 2024
1 parent d7539aa commit 0d95f25
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sdks/python/julep/managers/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ async def get(self, id: Union[UUID, str]) -> User:
@beartype
@rewrap_in_class(User)
async def create(self, **kwargs: UserCreateArgs) -> User:
metadata = kwargs.pop('metadata', {})
"""
Asynchronously create a new resource with the provided name, description, and documents.
Expand All @@ -396,7 +397,7 @@ async def create(self, **kwargs: UserCreateArgs) -> User:
Raises:
BeartypeException: If any of the parameters do not match their annotated types.
"""
result = await self._create(**kwargs)
result = await self._create(**kwargs, metadata=metadata)
return result

@beartype
Expand Down

0 comments on commit 0d95f25

Please sign in to comment.