Skip to content

Commit c41fe47

Browse files
committed
chore: mark Credentials class and methods as abstract
1 parent 575f6ae commit c41fe47

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tableauserverclient/models/tableau_auth.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1-
class Credentials:
1+
import abc
2+
3+
class Credentials(abc.ABC):
24
def __init__(self, site_id=None, user_id_to_impersonate=None):
35
self.site_id = site_id or ""
46
self.user_id_to_impersonate = user_id_to_impersonate or None
57

68
@property
9+
@abc.abstractmethod
710
def credentials(self):
811
credentials = "Credentials can be username/password, Personal Access Token, or JWT"
912
+"This method returns values to set as an attribute on the credentials element of the request"
1013

14+
@abc.abstractmethod
1115
def __repr__(self):
1216
return "All Credentials types must have a debug display that does not print secrets"
1317

0 commit comments

Comments
 (0)