mirror of
https://github.com/Garmelon/PFERD.git
synced 2025-10-22 01:32:32 +02:00
Fix some typing errors
It seems like the type hints have gotten better :)
This commit is contained in:
@@ -125,11 +125,11 @@ class ReusableAsyncContextManager(ABC, Generic[T]):
|
||||
# See https://stackoverflow.com/a/13075071
|
||||
try:
|
||||
result: T = await self._on_aenter()
|
||||
except: # noqa: E722 do not use bare 'except'
|
||||
return result
|
||||
except:
|
||||
if not await self.__aexit__(*sys.exc_info()):
|
||||
raise
|
||||
|
||||
return result
|
||||
raise
|
||||
|
||||
async def __aexit__(
|
||||
self,
|
||||
|
Reference in New Issue
Block a user