Correct type.

This commit is contained in:
Itamar Turner-Trauring 2022-07-06 09:50:16 -04:00
parent 0b5132745d
commit 87932e3444
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ HTTP server for storage.
from __future__ import annotations from __future__ import annotations
from typing import Dict, List, Set, Tuple, Any, Callable from typing import Dict, List, Set, Tuple, Any, Callable, Union
from functools import wraps from functools import wraps
from base64 import b64decode from base64 import b64decode
import binascii import binascii
@ -394,7 +394,7 @@ class _ReadRangeProducer:
pass pass
def read_range(request: Request, read_data: ReadData) -> None: def read_range(request: Request, read_data: ReadData) -> Union[Deferred, bytes]:
""" """
Read an optional ``Range`` header, reads data appropriately via the given Read an optional ``Range`` header, reads data appropriately via the given
callable, writes the data to the request. callable, writes the data to the request.