From 2babe0fee715d497ff4234328a158b8cebe1ce5b Mon Sep 17 00:00:00 2001 From: AlberLC Date: Mon, 14 Apr 2025 22:57:35 +0200 Subject: [PATCH] Update type hints --- flanabot/bots/steam_bot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flanabot/bots/steam_bot.py b/flanabot/bots/steam_bot.py index 27f09fe..709d244 100644 --- a/flanabot/bots/steam_bot.py +++ b/flanabot/bots/steam_bot.py @@ -8,9 +8,9 @@ import re import urllib.parse from abc import ABC from collections import defaultdict -from collections.abc import Awaitable, Callable, Iterable, Iterator +from collections.abc import Awaitable, Callable, Iterable from contextlib import asynccontextmanager -from typing import Any +from typing import Any, AsyncIterator import aiohttp import flanautils @@ -63,7 +63,7 @@ class SteamBot(MultiBot, ABC): @asynccontextmanager async def _create_browser_context( browser: playwright.async_api.Browser - ) -> Iterator[playwright.async_api.BrowserContext]: + ) -> AsyncIterator[playwright.async_api.BrowserContext]: async with await browser.new_context( user_agent='Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.5615.49 Safari/537.36', screen={