File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -67,8 +67,8 @@ def api_client(self) -> BitwardenAPIClient:
6767def decode_bytes (
6868 value : Any , handler : ValidatorFunctionWrapHandler , info : ValidationInfo
6969) -> bytes :
70- context : dict = cast (dict , info .context )
71- keys : list [bytes ] = cast (list [bytes ], context .get ("cctx" ))
70+ context : dict = cast (" dict" , info .context )
71+ keys : list [bytes ] = cast (" list[bytes]" , context .get ("cctx" ))
7272 for key in keys [::- 1 ]:
7373 try :
7474 return decrypt (handler (value ), key )
@@ -227,8 +227,8 @@ def set_key(
227227 info : ValidationInfo ,
228228 ) -> Self :
229229 if (key := data .get ("key" )) is not None :
230- context = cast (dict , info .context )
231- cctx = cast (list [bytes ], context .get ("cctx" ))
230+ context = cast (" dict" , info .context )
231+ cctx = cast (" list[bytes]" , context .get ("cctx" ))
232232
233233 cctx .append (decrypt (key , cctx [0 ]))
234234
You can’t perform that action at this time.
0 commit comments