Files
proxy-scraper-checker/proxy_scraper_checker/null_context.py
T

18 lines
299 B
Python
Raw Normal View History

2023-02-19 21:44:15 +03:00
from __future__ import annotations
2024-01-21 17:45:01 +00:00
class NullContext:
2023-02-19 21:44:15 +03:00
__slots__ = ()
2024-01-21 17:45:01 +00:00
def __enter__(self) -> None:
pass
def __exit__(self, *_: object) -> None:
pass
2023-02-19 21:44:15 +03:00
async def __aenter__(self) -> None:
pass
2023-08-09 08:07:25 +00:00
async def __aexit__(self, *_: object) -> None:
2023-02-19 21:44:15 +03:00
pass