Skip to content

Commit 489c543

Browse files
author
Hector Oliveros
committed
Add typing metadata and include py.typed in sdist
This commit marks the package as typed in the classifiers and ensures `py.typed` is included in the source distribution. This improves compatibility with type checkers and enforces better type safety for users.
1 parent b1cfae3 commit 489c543

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

py.typed

Whitespace-only changes.

pyproject.toml

+5-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ classifiers = [
3535
"Programming Language :: Python :: 3.12",
3636
"Programming Language :: Python :: 3.13",
3737
"Topic :: Software Development :: Libraries :: Python Modules",
38+
"Typing :: Typed",
3839
]
3940
[dependency-groups]
4041
dev = [
@@ -72,7 +73,10 @@ Homepage = "http://freeopcua.github.io/"
7273
Repository = "https://github.com/FreeOpcUa/opcua-asyncio"
7374

7475
[tool.hatch.build.targets.sdist]
75-
include = ["/asyncua"]
76+
include = [
77+
"/asyncua",
78+
"/asyncua/py.typed"
79+
]
7680

7781
[tool.pytest.ini_options]
7882
log_cli = false

0 commit comments

Comments
 (0)