Skip to content

Commit 80679fe

Browse files
committed
fix: correct package structure for type stubs to resolve import-untyped errors
- Rename nameparser_stubs/ to nameparser/ to match actual module name - Update pyproject.toml package configuration - Add py.typed file to signal package contains type information This fixes the [import-untyped] error that occurs when installing the package, as type stubs must be in a package that matches the module name that users import (nameparser, not nameparser_stubs).
1 parent ea672f7 commit 80679fe

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎nameparser/py.typed‎

Whitespace-only changes.

‎pyproject.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ classifiers = [
3333
]
3434

3535
[tool.setuptools]
36-
packages = ["nameparser_stubs"]
37-
package-data = {"nameparser_stubs" = ["*.pyi"]}
36+
packages = ["nameparser"]
37+
package-data = {"nameparser" = ["*.pyi"]}
3838

3939
[dependency-groups]
4040
dev = [

0 commit comments

Comments
 (0)