mirror of
https://github.com/Garmelon/PFERD.git
synced 2026-04-12 07:25:04 +02:00
Reformat and switch to ruff
This commit is contained in:
parent
ee4625be78
commit
2cf0e060ed
31 changed files with 1507 additions and 587 deletions
|
|
@ -131,10 +131,10 @@ class ReusableAsyncContextManager(ABC, Generic[T]):
|
|||
return result
|
||||
|
||||
async def __aexit__(
|
||||
self,
|
||||
exc_type: Optional[Type[BaseException]],
|
||||
exc_value: Optional[BaseException],
|
||||
traceback: Optional[TracebackType],
|
||||
self,
|
||||
exc_type: Optional[Type[BaseException]],
|
||||
exc_value: Optional[BaseException],
|
||||
traceback: Optional[TracebackType],
|
||||
) -> Optional[bool]:
|
||||
if not self._active:
|
||||
raise RuntimeError("__aexit__ called too many times")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue