Skip to content

Commit

Permalink
fix: re-import from passageidentity.user module path to keep import b…
Browse files Browse the repository at this point in the history
…ehavior the same for now
  • Loading branch information
ctran88 committed Jan 2, 2025
1 parent de4f9de commit 036f645
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
15 changes: 12 additions & 3 deletions passageidentity/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,24 @@
UserDevicesApi,
UsersApi,
)
from .openapi_client.models import (
CreateUserArgs as CreateUserRequest,
)
from .openapi_client.models import (
PassageUser as UserInfo,
)
from .openapi_client.models import (
UpdateUserArgs as UpdateUserRequest,
)

if TYPE_CHECKING:
from .openapi_client.models import (
CreateUserArgs,
PassageUser,
UpdateUserArgs,
WebAuthnDevices,
)

PassageUser = UserInfo
CreateUserArgs = CreateUserRequest
UpdateUserArgs = UpdateUserRequest

class User:
"""User class for handling operations to get and update user information."""
Expand Down
3 changes: 1 addition & 2 deletions tests/user_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
from faker import Faker

from passageidentity.errors import PassageError
from passageidentity.openapi_client.models.passage_user import PassageUser
from passageidentity.openapi_client.models.update_user_args import UpdateUserArgs
from passageidentity.passage import Passage
from passageidentity.user import PassageUser, UpdateUserArgs

load_dotenv()
f = Faker()
Expand Down

0 comments on commit 036f645

Please sign in to comment.