mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
Preserve RedactedDict type through copy()
This commit is contained in:
parent
c4221c5ab3
commit
dd15785db7
1 changed files with 3 additions and 0 deletions
|
|
@ -10,6 +10,9 @@ class RedactedDict(dict):
|
|||
def __str__(self) -> str:
|
||||
return "RedactedDict(REDACTED)"
|
||||
|
||||
def copy(self) -> "RedactedDict":
|
||||
return RedactedDict(super().copy())
|
||||
|
||||
|
||||
class SecretFields(TypedDict):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue