Skip to content

Commit

Permalink
Import AsyncGenerator from collections
Browse files Browse the repository at this point in the history
  • Loading branch information
yihong1120 committed Dec 3, 2024
1 parent cd7d8dc commit fa59881
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/YOLO_server_api/app.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from __future__ import annotations

import os
from collections.abc import AsyncGenerator
from contextlib import asynccontextmanager
from typing import AsyncGenerator

import redis.asyncio as redis
import socketio
Expand Down
2 changes: 1 addition & 1 deletion examples/YOLO_server_api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

import asyncio
import threading
from collections.abc import AsyncGenerator
from datetime import datetime
from datetime import timezone
from pathlib import Path
from typing import AsyncGenerator

from sahi.predict import AutoDetectionModel
from sqlalchemy import Boolean
Expand Down
2 changes: 1 addition & 1 deletion examples/user_management/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import logging
import os
from typing import AsyncGenerator
from collections.abc import AsyncGenerator

from fastapi import Depends
from fastapi import FastAPI
Expand Down

0 comments on commit fa59881

Please sign in to comment.