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

Argument "session" to "Storage" has incompatible type "ClientSession"; expected "Optional[Session]" #576

Open
FedirAlifirenko opened this issue Jan 21, 2023 · 0 comments

Comments

@FedirAlifirenko
Copy link

FedirAlifirenko commented Jan 21, 2023

scratch.py content:

from aiohttp.client import ClientSession
from gcloud.aio.storage import Storage

Storage(session=ClientSession())

mypy scratch.py outputs:

scratch.py:4: error: Argument "session" to "Storage" has incompatible type "ClientSession"; expected "Optional[Session]"  [arg-type]

requirements.txt

aiohttp
requests
gcloud-aio-storage

mypy

Python3.9 and dependencies:

aiohttp==3.8.3
gcloud-aio-auth==4.1.5
gcloud-aio-storage==8.0.0
requests==2.28.2

after requests uninstalling the error disappears

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

No branches or pull requests

1 participant