mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 01:09:40 +08:00
[mypy] fix hashes folder (#4305)
* fix hashes-folder * Update build.yml * fix doctests * return-values to int * Update hashes/adler32.py * type hints for elements Co-authored-by: Christian Clauss <cclauss@me.com>
This commit is contained in:
@ -9,10 +9,10 @@
|
||||
"""
|
||||
|
||||
|
||||
def adler32(plain_text: str) -> str:
|
||||
def adler32(plain_text: str) -> int:
|
||||
"""
|
||||
Function implements adler-32 hash.
|
||||
Itterates and evaluates new value for each character
|
||||
Iterates and evaluates a new value for each character
|
||||
|
||||
>>> adler32('Algorithms')
|
||||
363791387
|
||||
|
Reference in New Issue
Block a user