Skip to content

Commit

Permalink
Code lint
Browse files Browse the repository at this point in the history
  • Loading branch information
gi0baro committed Nov 17, 2024
1 parent 391ef0d commit cb0355d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rloop/loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from contextvars import copy_context as _copy_context
from typing import Union

from ._compat import _PYV, _PY_311
from ._compat import _PY_311, _PYV
from ._rloop import CBHandle, EventLoop as __BaseLoop, TimerHandle
from .futures import _SyncSockReaderFuture, _SyncSockWriterFuture
from .utils import _HAS_IPv6, _ipaddr_info
Expand Down Expand Up @@ -190,6 +190,7 @@ def create_future(self) -> _Future:
return _Future(loop=self)

if _PYV >= _PY_311:

def create_task(self, coro, *, name=None, context=None) -> _Task:
self._check_closed()
if self._task_factory is None:
Expand All @@ -207,6 +208,7 @@ def create_task(self, coro, *, name=None, context=None) -> _Task:

return task
else:

def create_task(self, coro, *, name=None, context=None) -> _Task:
self._check_closed()
if self._task_factory is None:
Expand Down

0 comments on commit cb0355d

Please sign in to comment.