FEAT: Add py.typed marker by cnaples79 ยท Pull Request #367 ยท microsoft/mssql-python

@cnaples79

Fixes #359

Summary

  • add PEP 561 py.typed marker so type checkers see bundled stubs
  • include marker in package_data for distribution

Rationale

Changes

  • add mssql_python/py.typed
  • ship py.typed via setup.py package_data

@cnaples79

@sumitmsft

Hi @cnaples79

Thank you for raising this PR, appreciate your efforts. We will review the PR and share our comments (if any).

Please allow us a few days' time to get back on this. We will assign it to the appropriate engineer by tomorrow.

Regards,
Sumit

@bewithgaurav

Hi @cnaples79 - Thanks for raising this.. The PR looks good to go!
Requesting you to resolve the conflicts so that we can start CI pipelines and merge this off, please let us know if you have any queries.

bewithgaurav

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Conflicts need to be resolved before merge, else lgtm

@bewithgaurav

@bewithgaurav bewithgaurav changed the title Add py.typed marker FEAT: Add py.typed marker

Jan 29, 2026

@bewithgaurav

@bewithgaurav

@bewithgaurav

@azure-pipelines

Azure Pipelines successfully started running 1 pipeline(s).

@github-actions

๐Ÿ“Š Code Coverage Report

๐Ÿ”ฅ Diff Coverage

100%


๐ŸŽฏ Overall Coverage

76%


๐Ÿ“ˆ Total Lines Covered: 5472 out of 7137
๐Ÿ“ Project: mssql-python


Diff Coverage

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

No lines with coverage information in this diff.


๐Ÿ“‹ Files Needing Attention

๐Ÿ“‰ Files with overall lowest coverage (click to expand)
mssql_python.pybind.logger_bridge.hpp: 58.8%
mssql_python.pybind.logger_bridge.cpp: 59.2%
mssql_python.row.py: 66.2%
mssql_python.pybind.ddbc_bindings.cpp: 69.3%
mssql_python.pybind.ddbc_bindings.h: 69.7%
mssql_python.pybind.connection.connection.cpp: 75.3%
mssql_python.ddbc_bindings.py: 79.6%
mssql_python.pybind.connection.connection_pool.cpp: 79.6%
mssql_python.connection.py: 84.1%
mssql_python.cursor.py: 84.7%

๐Ÿ”— Quick Links

bewithgaurav

gargsaumya

@bewithgaurav

@bewithgaurav

@azure-pipelines

Azure Pipelines successfully started running 1 pipeline(s).

@bewithgaurav

@bewithgaurav

@bewithgaurav

@azure-pipelines

Azure Pipelines successfully started running 1 pipeline(s).