@@ -56,7 +56,7 @@ def represent_flattened_json(obj: FlattenedJSONEncryption) -> FlattenedJSONSeria
5656
5757
5858def __represent_json_serialization (obj : BaseJSONEncryption ): # type: ignore[no-untyped-def]
59- data : t . Dict [str , t .Union [str , Header , t . List [Header ]]] = {
59+ data : dict [str , t .Union [str , Header , list [Header ]]] = {
6060 "protected" : to_str (json_b64encode (obj .protected )),
6161 "iv" : to_str (obj .base64_segments ["iv" ]),
6262 "ciphertext" : to_str (obj .base64_segments ["ciphertext" ]),
@@ -102,13 +102,13 @@ def extract_flattened_json(data: FlattenedJSONSerialization) -> FlattenedJSONEnc
102102
103103def __extract_segments (
104104 data : t .Union [GeneralJSONSerialization , FlattenedJSONSerialization ],
105- ) -> t . Tuple [ t . Dict [str , bytes ], t . Dict [str , bytes ], t .Optional [bytes ]]:
106- base64_segments : t . Dict [str , bytes ] = {
105+ ) -> tuple [ dict [str , bytes ], dict [str , bytes ], t .Optional [bytes ]]:
106+ base64_segments : dict [str , bytes ] = {
107107 "iv" : to_bytes (data ["iv" ]),
108108 "ciphertext" : to_bytes (data ["ciphertext" ]),
109109 "tag" : to_bytes (data ["tag" ]),
110110 }
111- bytes_segments : t . Dict [str , bytes ] = {
111+ bytes_segments : dict [str , bytes ] = {
112112 "iv" : urlsafe_b64decode (base64_segments ["iv" ]),
113113 "ciphertext" : urlsafe_b64decode (base64_segments ["ciphertext" ]),
114114 "tag" : urlsafe_b64decode (base64_segments ["tag" ]),
0 commit comments