mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 01:09:40 +08:00
Tighten up psf/black and flake8 (#2024)
* Tighten up psf/black and flake8 * Fix some tests * Fix some E741 * Fix some E741 * updating DIRECTORY.md Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
@ -4,8 +4,8 @@ from typing import List
|
||||
def allocation_num(number_of_bytes: int, partitions: int) -> List[str]:
|
||||
"""
|
||||
Divide a number of bytes into x partitions.
|
||||
|
||||
In a multi-threaded download, this algorithm could be used to provide
|
||||
|
||||
In a multi-threaded download, this algorithm could be used to provide
|
||||
each worker thread with a block of non-overlapping bytes to download.
|
||||
For example:
|
||||
for i in allocation_list:
|
||||
|
Reference in New Issue
Block a user