Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deprecationwarning The object should be created within an async function #141

Open
grandpa1946 opened this issue Aug 31, 2023 · 2 comments

Comments

@grandpa1946
Copy link

async with aiohttp.ClientSession(
DeprecationWarning: The object should be created within an async function
async with aiohttp.ClientSession(

@NabiKAZ
Copy link

NabiKAZ commented Sep 20, 2023

Same in Python 3.11.5

C:\Users\Nabi>proxybroker find --types HTTP HTTPS --lvl High --countries US --strict -l 10
C:\Users\Nabi\AppData\Local\Programs\Python\Python311\Lib\site-packages\proxybroker\providers.py:77: DeprecationWarning: The object should be created within an async function
  async with aiohttp.ClientSession(
C:\Users\Nabi\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\connector.py:767: DeprecationWarning: The object should be created within an async function
  super().__init__(
C:\Users\Nabi\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\cookiejar.py:67: DeprecationWarning: The object should be created within an async function
  super().__init__(loop=loop)

@Ilya-Green
Copy link

Same in 3.9, 3.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants