From ea7ccf113ace1a4da7343f93ef130ccb3b57578c Mon Sep 17 00:00:00 2001 From: Miguel Ballesteros Date: Fri, 30 Aug 2024 15:54:14 -0500 Subject: [PATCH] Updated type check in init --- src/factiva/analytics/auth/accountinfo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/factiva/analytics/auth/accountinfo.py b/src/factiva/analytics/auth/accountinfo.py index 47a0a51..e2f9d2f 100755 --- a/src/factiva/analytics/auth/accountinfo.py +++ b/src/factiva/analytics/auth/accountinfo.py @@ -4,6 +4,7 @@ """ import json import pandas as pd +from typing import Union from ..common import log, req, tools, const, config from ..auth import UserKey from ..snapshots import SnapshotExtractionList @@ -37,7 +38,7 @@ class AccountInfo: extractions_list: SnapshotExtractionList = None - def __init__(self, user_key: UserKey | str=None): + def __init__(self, user_key: Union[UserKey, str]): """ Construct the instance of the class