chore: regen cassettes; make linter happy

This commit is contained in:
Greyson LaLonde
2026-01-23 02:34:26 -05:00
parent 6145dfdbe7
commit 2f87d2c1b6
5 changed files with 168 additions and 140 deletions

View File

@@ -3,6 +3,7 @@
from __future__ import annotations
from collections.abc import AsyncIterator, Iterator
import inspect
import mimetypes
from pathlib import Path
from typing import Annotated, Any, BinaryIO, Protocol, cast, runtime_checkable
@@ -401,7 +402,7 @@ class AsyncFileStream(BaseModel):
"""Async close the underlying stream."""
if hasattr(self.stream, "close"):
result = self.stream.close()
if hasattr(result, "__await__"):
if inspect.isawaitable(result):
await result
async def __aenter__(self) -> AsyncFileStream: