Skip to content

fix: correct package structure for type stubs to resolve import-untyped errors#8

Merged
LucianBuzzo merged 1 commit into
masterfrom
fix/package-structure-for-type-stubs
Sep 12, 2025
Merged

fix: correct package structure for type stubs to resolve import-untyped errors#8
LucianBuzzo merged 1 commit into
masterfrom
fix/package-structure-for-type-stubs

Conversation

@LucianBuzzo

Copy link
Copy Markdown
Contributor
  • 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).

…ed 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).
@LucianBuzzo
LucianBuzzo merged commit 80679fe into master Sep 12, 2025
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant