Azure / Azure/azure-sdk-tools

[Python APIView] Python public constants don't appear in APIView

Open
#7,131 0 comments 0 reactions 1 assignee Assigned to @swathipil View on GitHub
APIView bug Python
Dominant language
C#
Stars
135
Forks
260
Avg merge
3d 1h
Merged PRs (30d)
143

Description

Ran into a case when dealing with azure-core in the Python SDK:

In the `azure.core.serialization` namespace, we have a public constant that is commonly imported by other SDK packages:

https://github.com/Azure/azure-sdk-for-python/blob/b25a0309f5ffecb0fc4c16ba0e551bdaaa6560ff/sdk/core/azure-core/azure/core/serialization.py#L25

```python
NULL = _Null()
```

However, this constant does not appear in the APIView: https://apiview.dev/Assemblies/Review/998d0146014f4305bd4e6054b2eb56aa#azure.core.serialization

Would be great if constants in public namespaces that are not prefixed with an underscore show up in APIView. Or at least ones in the `__all__` list.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.