mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 09:21:13 +08:00
fix(mypy): Fix annotations for 13 cipher algorithms (#4278)
* Initial fix for mypy errors in some cipher algorithms * fix(mypy): Update type hints * fix(mypy): Update type hints for enigma_machine2.py * Update as per the suggestion Co-authored-by: Christian Clauss <cclauss@me.com> Co-authored-by: Christian Clauss <cclauss@me.com>
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import base64
|
||||
|
||||
|
||||
def main():
|
||||
def main() -> None:
|
||||
inp = input("->")
|
||||
encoded = inp.encode("utf-8") # encoded the input (we need a bytes like object)
|
||||
b32encoded = base64.b32encode(encoded) # b32encoded the encoded string
|
||||
|
Reference in New Issue
Block a user