prefer Optional over to "| None"

This commit is contained in:
Aleix Conchillo Flaqué
2025-02-06 11:11:37 -08:00
parent 684764fece
commit c4dbe92b30
43 changed files with 139 additions and 136 deletions

View File

@@ -7,6 +7,7 @@
import asyncio
import os
import sys
from typing import Optional
import aiohttp
from dotenv import load_dotenv
@@ -32,7 +33,7 @@ logger.add(sys.stderr, level="DEBUG")
class UserImageRequester(FrameProcessor):
def __init__(self, participant_id: str | None = None):
def __init__(self, participant_id: Optional[str] = None):
super().__init__()
self._participant_id = participant_id