Skip to content

FIX: add explicit exports from main library module#494

Merged
bewithgaurav merged 2 commits into
microsoft:mainfrom
cepedus:add-explicit-exports
Apr 6, 2026
Merged

FIX: add explicit exports from main library module#494
bewithgaurav merged 2 commits into
microsoft:mainfrom
cepedus:add-explicit-exports

Conversation

@cepedus

@cepedus cepedus commented Apr 2, 2026

Copy link
Copy Markdown
Contributor

Issue Reference

GitHub Issue: #489


Summary

Adds __all__ to __init__.py listing all public symbols currently imported into the module. This allows to import any already public object directly from the root module, without worrying about the internal package structure.

This change also makes the tutorial snippets mypy-compliant

@cepedus

cepedus commented Apr 2, 2026

Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree

@jahnvi480

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@github-actions

github-actions Bot commented Apr 3, 2026

Copy link
Copy Markdown

📊 Code Coverage Report

🔥 Diff Coverage

100%


🎯 Overall Coverage

78%


📈 Total Lines Covered: 6603 out of 8393
📁 Project: mssql-python


Diff Coverage

Diff: main...HEAD, staged and unstaged changes

  • mssql_python/init.py (100%)

Summary

  • Total: 1 line
  • Missing: 0 lines
  • Coverage: 100%

📋 Files Needing Attention

📉 Files with overall lowest coverage (click to expand)
mssql_python.pybind.logger_bridge.cpp: 59.2%
mssql_python.pybind.ddbc_bindings.h: 67.8%
mssql_python.row.py: 70.5%
mssql_python.pybind.logger_bridge.hpp: 70.8%
mssql_python.pybind.ddbc_bindings.cpp: 73.9%
mssql_python.pybind.connection.connection.cpp: 75.3%
mssql_python.__init__.py: 77.3%
mssql_python.ddbc_bindings.py: 79.6%
mssql_python.pybind.connection.connection_pool.cpp: 79.6%
mssql_python.connection.py: 85.2%

🔗 Quick Links

⚙️ Build Summary 📋 Coverage Details

View Azure DevOps Build

Browse Full Coverage Report

@jahnvi480

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@bewithgaurav bewithgaurav merged commit 9f78a27 into microsoft:main Apr 6, 2026
27 checks passed
@cepedus cepedus deleted the add-explicit-exports branch April 6, 2026 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants