Repository navigation
Add missing functions/classes to __all__ - #757
csmarchbanks merged 4 commits into
Conversation
Signed-off-by: Yury Pliner <yury.pliner@gmail.com>
d8d8f0c to
0c66ee1
Compare
|
@csmarchbanks Could you look on it please? |
csmarchbanks
left a comment
There was a problem hiding this comment.
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! |
| from .registry import REGISTRY | ||
| from .utils import floatToGoString | ||
|
|
||
| __all__ = ( |
There was a problem hiding this comment.
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.
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.
This seems fine to me, it makes it very clear that those are the things we are exporting.
| from .registry import REGISTRY | ||
| from .utils import floatToGoString | ||
|
|
||
| __all__ = ( |
There was a problem hiding this comment.
This seems fine to me, it makes it very clear that those are the things we are exporting.
Hi,
mypy==0.931.0raises 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.