-
Notifications
You must be signed in to change notification settings - Fork 790
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
Add missing functions/classes to __all__ #757
Add missing functions/classes to __all__ #757
Conversation
Signed-off-by: Yury Pliner <yury.pliner@gmail.com>
d8d8f0c
to
0c66ee1
Compare
@csmarchbanks Could you look on it please? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
If this is an issue for you with those two functions, it will probably be an issue for others with some of the other functions, would you be willing to just add them all?
Also, it would be nice if this would fail in our linter, perhaps as part of this PR you could add |
Signed-off-by: Yury Pliner <yury.pliner@gmail.com>
9253a31
to
8122061
Compare
Signed-off-by: Yury Pliner <yury.pliner@gmail.com>
e9d1446
to
c7e9c19
Compare
prometheus_client/__init__.py:7: error: Module "prometheus_client.exposition" does not explicitly export attribute "make_asgi_app"; implicit reexport disabled Signed-off-by: Yury Pliner <yury.pliner@gmail.com>
c7e9c19
to
e75aa84
Compare
@csmarchbanks Done. Thanks for the fast feedback! |
@@ -17,6 +17,21 @@ | |||
from .registry import REGISTRY | |||
from .utils import floatToGoString | |||
|
|||
__all__ = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a bit unsure about this, but had to explicitly export in this way because of make_asgi_app
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prometheus_client/__init__.py:7: error:Module "prometheus_client.exposition" does not explicitly export attribute "make_asgi_app"; implicit reexport disabled
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems fine to me, it makes it very clear that those are the things we are exporting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks!
@@ -17,6 +17,21 @@ | |||
from .registry import REGISTRY | |||
from .utils import floatToGoString | |||
|
|||
__all__ = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems fine to me, it makes it very clear that those are the things we are exporting.
Hi,
mypy==0.931.0
raises the following errors forprometheus-client==0.13.0
:Probably the reason of it are two things:
__all__
declaration and I have no idea why it worked before.I hope it is fine to include these two things to
__all__
, because of their wider usage compared to other classes/constants mentioned in #747.Thanks.