From 6e302d5b6bd729ef08231ef3909b5c2852c9d63f Mon Sep 17 00:00:00 2001 From: Lucian Buzzo Date: Fri, 12 Sep 2025 19:16:18 +0100 Subject: [PATCH] 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). --- {nameparser_stubs => nameparser}/__init__.pyi | 0 nameparser/py.typed | 0 pyproject.toml | 4 ++-- 3 files changed, 2 insertions(+), 2 deletions(-) rename {nameparser_stubs => nameparser}/__init__.pyi (100%) create mode 100644 nameparser/py.typed diff --git a/nameparser_stubs/__init__.pyi b/nameparser/__init__.pyi similarity index 100% rename from nameparser_stubs/__init__.pyi rename to nameparser/__init__.pyi diff --git a/nameparser/py.typed b/nameparser/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/pyproject.toml b/pyproject.toml index ddb0d4b..2933d23 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,8 +33,8 @@ classifiers = [ ] [tool.setuptools] -packages = ["nameparser_stubs"] -package-data = {"nameparser_stubs" = ["*.pyi"]} +packages = ["nameparser"] +package-data = {"nameparser" = ["*.pyi"]} [dependency-groups] dev = [