Skip to content

Commit

Permalink
update type annotation for otf auth
Browse files Browse the repository at this point in the history
  • Loading branch information
NodeJSmith committed Jan 6, 2025
1 parent 586171e commit c5a8339
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/otf_api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

from otf_api import exceptions as exc
from otf_api import filters, models
from otf_api.auth import OtfAuth, OtfUser
from otf_api.auth import OTF_AUTH_TYPE, OtfUser

API_BASE_URL = "api.orangetheory.co"
API_IO_BASE_URL = "api.orangetheory.io"
Expand All @@ -24,11 +24,11 @@ class Otf:
user: OtfUser
session: httpx.Client

def __init__(self, auth: OtfAuth | None = None, user: OtfUser | None = None):
def __init__(self, auth: OTF_AUTH_TYPE | None = None, user: OtfUser | None = None):
"""Initialize the OTF API client. Either an auth object or a user object must be provided.
Args:
auth (OtfAuth): The authentication object to use.
auth (OTF_AUTH_TYPE): The authentication object to use.
user (OtfUser): The user object to use.
"""
if user:
Expand Down

0 comments on commit c5a8339

Please sign in to comment.