Skip to content

Commit 8e58413

Browse files
committed
we know it's deprecated; we deprecated it...
1 parent 59861df commit 8e58413

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

guardrails/classes/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from guardrails.classes.credentials import Credentials
1+
from guardrails.classes.credentials import Credentials # type: ignore
22
from guardrails.classes.rc import RC
33
from guardrails.classes.input_type import InputType
44
from guardrails.classes.output_type import OT
@@ -11,7 +11,7 @@
1111
from guardrails.classes.validation_outcome import ValidationOutcome
1212

1313
__all__ = [
14-
"Credentials",
14+
"Credentials", # type: ignore
1515
"RC",
1616
"ErrorSpan",
1717
"InputType",

guardrails/classes/credentials.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ def has_rc_file() -> bool:
3333
return RC.exists()
3434

3535
@staticmethod
36-
def from_rc_file(logger: Optional[logging.Logger] = None) -> "Credentials":
36+
def from_rc_file(logger: Optional[logging.Logger] = None) -> "Credentials": # type: ignore
3737
rc = RC.load(logger)
38-
return Credentials(
38+
return Credentials( # type: ignore
3939
id=rc.id,
4040
token=rc.token,
4141
enable_metrics=rc.enable_metrics,

guardrails/validator_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ def __init__(
145145
)
146146
)
147147
def creds(self):
148-
from guardrails.classes.credentials import Credentials
148+
from guardrails.classes.credentials import Credentials # type: ignore
149149

150-
return Credentials.from_rc_file()
150+
return Credentials.from_rc_file() # type: ignore
151151

152152
def _validate(self, value: Any, metadata: Dict[str, Any]) -> ValidationResult:
153153
"""User implementable function.

0 commit comments

Comments
 (0)