diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d581714..877411c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -39,4 +39,4 @@ repos: additional_dependencies: - aiohttp<4 - rich<14 - - uvloop<0.19; implementation_name == "cpython" and (sys_platform == "darwin" or sys_platform == "linux") + - uvloop<0.20; implementation_name == "cpython" and (sys_platform == "darwin" or sys_platform == "linux") diff --git a/proxy_scraper_checker/__main__.py b/proxy_scraper_checker/__main__.py index 9c66af6..afd65cb 100644 --- a/proxy_scraper_checker/__main__.py +++ b/proxy_scraper_checker/__main__.py @@ -24,9 +24,7 @@ def set_event_loop_policy() -> None: except ImportError: pass else: - asyncio.set_event_loop_policy( - uvloop.EventLoopPolicy() # type: ignore[attr-defined] - ) + asyncio.set_event_loop_policy(uvloop.EventLoopPolicy()) def configure_logging(console: Console, *, debug: bool) -> None: diff --git a/requirements.txt b/requirements.txt index d02d3b9..5ecbf0b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,4 +2,4 @@ aiodns>=3.0,<4 aiohttp-socks>=0.7,<0.9 aiohttp>=3.8,<4 rich>=12.3,<14 -uvloop>=0.16,<0.19; implementation_name == "cpython" and (sys_platform == "darwin" or sys_platform == "linux") +uvloop>=0.16,<0.20; implementation_name == "cpython" and (sys_platform == "darwin" or sys_platform == "linux")