Skip to content

Inline stubs from typeshed#175

Merged
micheles merged 1 commit intomicheles:masterfrom
MarcoGorelli:stubs
Jun 27, 2025
Merged

Inline stubs from typeshed#175
micheles merged 1 commit intomicheles:masterfrom
MarcoGorelli:stubs

Conversation

@MarcoGorelli
Copy link
Contributor

@MarcoGorelli MarcoGorelli commented Jun 27, 2025

closes #173

I tried this out, and doing a git install from my branch with the snippet in #173 (comment) reveals:

(scratch) marcogorelli@DESKTOP-U8OKFP3:~/scratch$ uv pip install git+https://github.com/MarcoGorelli/decorator.git@stubs
    Updated https://github.com/MarcoGorelli/decorator.git (638c91d58c2053e8058b30cbcd331bce7a95a6c8)
Resolved 1 package in 2.91s
      Built decorator @ git+https://github.com/MarcoGorelli/decorator.git@638c91d58c2053e8058b30cbcd331bce7a95a6c8
Prepared 1 package in 1.20s
Installed 1 package in 5ms
 + decorator==5.2.0 (from git+https://github.com/MarcoGorelli/decorator.git@638c91d58c2053e8058b30cbcd331bce7a95a6c8)
(scratch) marcogorelli@DESKTOP-U8OKFP3:~/scratch$ mypy t.py
t.py:6: error: "type[FunctionMaker]" has no attribute "new"  [attr-defined]
Found 1 error in 1 file (checked 1 source file)

, without needing to install extra packages or anything else 🥳

@MarcoGorelli MarcoGorelli marked this pull request as ready for review June 27, 2025 09:44
@MarcoGorelli MarcoGorelli marked this pull request as draft June 27, 2025 09:44
@MarcoGorelli MarcoGorelli marked this pull request as ready for review June 27, 2025 09:47
@micheles
Copy link
Owner

Thanks for your contribution.

@micheles micheles merged commit e5cfd35 into micheles:master Jun 27, 2025
7 checks passed
@jorenham
Copy link
Contributor

Do the stubs also need to be in the MANIFEST.in, for the sdist or something?

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.

Inline decorator stubs from typeshed

3 participants