소스 검색

Give types for every argument

Andrey Bienkowski 3 년 전
부모
커밋
6cf5ae4ca1
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      src/borg/crypto/key.py

+ 4 - 4
src/borg/crypto/key.py

@@ -458,12 +458,12 @@ class FlexiKey:
 
     @staticmethod
     def argon2(
-        passphrase,
+        passphrase: str,
         output_len_in_bytes: int,
         salt: bytes,
-        time_cost,
-        memory_cost,
-        parallelism,
+        time_cost: int,
+        memory_cost: int,
+        parallelism: int,
         type: Literal['i', 'd', 'id']
     ) -> bytes:
         if os.environ.get("BORG_TESTONLY_WEAKEN_KDF") == "1":