diff --git a/ansq/tcp/connection.py b/ansq/tcp/connection.py index d13aff9..56a8387 100644 --- a/ansq/tcp/connection.py +++ b/ansq/tcp/connection.py @@ -559,7 +559,7 @@ async def subscribe( await self.rdy(messages_count) - async def messages(self) -> AsyncGenerator[NSQMessage, None]: + async def messages(self) -> AsyncGenerator[NSQMessage]: """Generator, yields messages""" assert self.is_subscribed, "You should subscribe to the topic first" diff --git a/setup.cfg b/setup.cfg index dc1d80c..32de045 100644 --- a/setup.cfg +++ b/setup.cfg @@ -25,7 +25,7 @@ packages = find: install_requires = aiohttp>=1.0.0 attrs>=20.1 -python_requires = >=3.8 +python_requires = >=3.9 include_package_data = True [options.packages.find]