Skip to content

Add py.typed marker for PEP 561 compliance#37

Merged
second-ed merged 1 commit intosecond-ed:devfrom
KRRT7:feat/add-py-typed
Apr 27, 2026
Merged

Add py.typed marker for PEP 561 compliance#37
second-ed merged 1 commit intosecond-ed:devfrom
KRRT7:feat/add-py-typed

Conversation

@KRRT7
Copy link
Copy Markdown
Contributor

@KRRT7 KRRT7 commented Apr 27, 2026

Adds the empty py.typed marker file to src/danom/ per PEP 561.

Without this, mypy (and other type checkers) treat danom as an untyped package — every @safe decorated function loses its type signature, and from danom import safe triggers import-untyped errors under strict = true.

With the marker, mypy uses danom's inline annotations directly. No code changes needed — just the marker file.

@codspeed-hq
Copy link
Copy Markdown
Contributor

codspeed-hq Bot commented Apr 27, 2026

Merging this PR will not alter performance

✅ 21 untouched benchmarks


Comparing KRRT7:feat/add-py-typed (2525ecf) with dev (c7e2b72)

Open in CodSpeed

Allows mypy and other type checkers to use danom's inline type
annotations instead of treating the package as untyped.
@KRRT7 KRRT7 force-pushed the feat/add-py-typed branch from 9788dc1 to 2525ecf Compare April 27, 2026 05:43
@second-ed second-ed merged commit a9fd402 into second-ed:dev Apr 27, 2026
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.

2 participants