Skip to content

Commit c853631

Browse files
FEAT: Add py.typed marker (#367)
Fixes #359 ### Summary - add PEP 561 py.typed marker so type checkers see bundled stubs - include marker in package_data for distribution ### Rationale - fixes missing typing marker reported in #359 to avoid linter warnings after install ### Changes - add mssql_python/py.typed - ship py.typed via setup.py package_data --------- Co-authored-by: Gaurav Sharma <sharmag@microsoft.com>
1 parent be55129 commit c853631

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

mssql_python/py.typed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ def finalize_options(self):
107107
package_data={
108108
# Include PYD and DLL files inside mssql_python, exclude YML files
109109
"mssql_python": [
110+
"py.typed", # Marker file for PEP 561 typing support
110111
"ddbc_bindings.cp*.pyd", # Include all PYD files
111112
"ddbc_bindings.cp*.so", # Include all SO files
112113
"libs/*",

0 commit comments

Comments
 (0)