-
Notifications
You must be signed in to change notification settings - Fork 80
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
mypy complains about not explicitly export attributes from __init__.py #82
Comments
Hi, I can't reproduce this (but will add that mypy passes for an example project to our new CI stage). I tested the following: mkdir python_test
cd python_test
python3 -m venv .venv
source .venv/bin/activate
pip install deepl mypy
pip freeze
certifi==2023.7.22
charset-normalizer==3.3.2
deepl==1.16.1
idna==3.4
mypy==1.6.1
mypy-extensions==1.0.0
requests==2.31.0
typing_extensions==4.8.0
urllib3==2.0.7
echo "
import deepl
translator = deepl.Translator('abc')" > script.py
mypy script.py
Success: no issues found in 1 source file If I use
|
@JanEbbing I'm having the same issue. In order to reproduce you need |
Thanks @vad , I changed our pipeline to use strict |
The code
Produces the following
mypy
error:error: Module "deepl" does not explicitly export attribute "Translator" [attr-defined]
The text was updated successfully, but these errors were encountered: