Skip to content

scripts/create_baseline_stubs.py instructions are outdated #8837

Closed

Description

@Akuli

I would prefer:

1. Manually review the generated stubs in {stub_dir}
2. Run tests locally if you want (see CONTRIBUTING.md)
3. Commit the changes on a new branch and create a typeshed PR

The CI will check everything anyway, and is set up so that you don't have to run anything locally. This would also be consistent with CONTRIBUTING.md.

Originally posted by @Akuli in #8686 (comment)

Activity

  1. srittau commented on Oct 4, 2022

    @srittau
    Collaborator

    One problem with the generated stubs were overzealous re-exports. Is this still an issue? In that case we should probably mention it. But +1 from me.

  2. AlexWaygood commented on Oct 4, 2022

    @AlexWaygood
    Member

    @Avasam has a proposed fix for this included as part of #8798 (edit: now merged).

  3. AlexWaygood commented on Oct 4, 2022

    @AlexWaygood
    Member

    One problem with the generated stubs were overzealous re-exports. Is this still an issue? In that case we should probably mention it. But +1 from me.

    This is definitely still an issue. But @hauntsaninja mentioned to me recently that this can probably be fixed just by passing the --export-less argument to stubgen. We should see if that fixes the problem — if so, there's no need to mention it to contributors in the create_baseline_stubs.py instructions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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