Skip to content

Commit 6f940af

Browse files
committed
fix union annotation for async file proto
1 parent 1a188fe commit 6f940af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

httpx/_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ async def read(self, size: int = -1) -> AnyStr: ...
8484

8585
def fileno(self) -> int: ...
8686

87-
async def seek(self, offset: int, whence: int | None = ...) -> int: ...
87+
async def seek(self, offset: int, whence: Optional[int] = ...) -> int: ...
8888

8989

9090
FileContent = Union[IO[bytes], bytes, str, AsyncReadableBinaryFile]

0 commit comments

Comments
 (0)