Skip to content

Inline type stubs #95

@MarcoGorelli

Description

@MarcoGorelli

Hi - would you be open to including the stubs from typeshed inline in decorator wurlitzer?

They're here: https://github.com/python/typeshed/blob/main/stubs/decorator/decorator.pyi https://github.com/python/typeshed/blob/main/stubs/wurlitzer/wurlitzer.pyi, and are quite simple

Advantages of inlining stubs are:

  • ensure that they remain up-to-date
  • simpler user-experience (just pip install ujson gives people code + annotations without needing to install stubs)
  • It's recommended by the official typing guides

Similar issue and PR in ujson, where they accepted a PR to inline stubs

Would you also be open to this? Happy to make a PR if so

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions