Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
hugo-gomes authored Dec 14, 2023
1 parent b557f4b commit dc5e3d7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/netius/base/async_neo.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@
class Future(async_old.Future):
"""
Specialized Future class that supports the async/await
syntax to be used in a future, so that it becomes compliant
syntax to be used in the future so that it becomes compliant
with the basic Python asyncio strategy for futures.
Using this future it should be possible to ``await Future()`
Using this future, it should be possible to `await Future()`
for a simpler usage.
"""

Expand All @@ -80,7 +80,7 @@ def __await__(self):
class AwaitWrapper(object):
"""
Wrapper class meant to be used to encapsulate "old"
generator based objects as async generator objects that
generator-based objects as async generator object that
are eligible to be used with the async/await syntax.
It's also possible to pass simple values instead of
Expand All @@ -90,7 +90,7 @@ class AwaitWrapper(object):
_is_generator = True
""" Hard coded static flag that allows the underlying
infra-structure to know that this type is considered
to be generator compliant """
to be generator compliant. """

def __init__(self, generator, generate = False):
if generate: generator = self.generate(generator)
Expand Down Expand Up @@ -166,7 +166,7 @@ def routine(*args, **kwargs):
is_generator = inspect.isgenerator(result)

# in case the returned value is either a future or a generator
# the complete set of yielded elements are propagated and
# the complete set of yielded elements is propagated and
# the result is stored as the "new" result
if is_future_ or is_generator:
result = yield from result
Expand Down Expand Up @@ -261,7 +261,7 @@ def coroutine_return(coroutine):
object to be the result of the future yield as the first element
of the generator.
This allows the possibility to provide compatibility with the legacy
This allows the possibility of providing compatibility with the legacy
not return allowed generators.
:type coroutine: CoroutineObject
Expand Down

0 comments on commit dc5e3d7

Please sign in to comment.