Skip to content

Commit

Permalink
Fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
seshubaws committed Nov 14, 2023
1 parent b206873 commit bb1c2a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/data_masking/tests/src/single_mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ def __init__(
):
super().__init__(json_serializer=json_serializer, json_deserializer=json_deserializer)

def encrypt(self, data: bytes | str, **kwargs) -> str:
def encrypt(self, data, **kwargs) -> str:
data = self.json_serializer(data)
ciphertext = base64.b64encode(data).decode()
return ciphertext

def decrypt(self, data: bytes, **kwargs) -> Any:
def decrypt(self, data, **kwargs) -> Any:
ciphertext_decoded = base64.b64decode(data)
ciphertext = self.json_deserializer(ciphertext_decoded)
return ciphertext
Expand Down
1 change: 1 addition & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ show_column_numbers = True
show_error_codes = True
show_error_context = True
disable_error_code = annotation-unchecked
exclude = examples/data_masking/src

[mypy-jmespath]
ignore_missing_imports=True
Expand Down

0 comments on commit bb1c2a9

Please sign in to comment.