Skip to content

Commit

Permalink
Merge branch 'temp' into zerocopy
Browse files Browse the repository at this point in the history
  • Loading branch information
synodriver committed Mar 31, 2024
2 parents 9886b96 + e4b9946 commit df4e798
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions asgi_webdav/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
from enum import Enum
from io import BytesIO
from logging import getLogger
from typing import Callable, Optional
from typing import Optional
from collections.abc import Callable

from asgi_webdav.config import Config, get_config
from asgi_webdav.constants import (
Expand Down Expand Up @@ -147,8 +148,8 @@ def create_send_or_zerocopy(self, scope: dict, send: Callable) -> Callable:

async def sendfile(
file_descriptor: int,
offset: Optional[int] = None,
count: Optional[int] = None,
offset: int | None = None,
count: int | None = None,
more_body: bool = False,
) -> None:
message = {
Expand All @@ -167,8 +168,8 @@ async def sendfile(

async def fake_sendfile(
file_descriptor: int,
offset: Optional[int] = None,
count: Optional[int] = None,
offset: int | None = None,
count: int | None = None,
more_body: bool = False,
) -> None:
if offset is not None:
Expand Down

0 comments on commit df4e798

Please sign in to comment.