Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Switch source of truth for stdlibs#56

Merged
amyreese merged 1 commit intofacebook:mainfrom
thatch:lib-changes
Apr 2, 2021
Merged

Switch source of truth for stdlibs#56
amyreese merged 1 commit intofacebook:mainfrom
thatch:lib-changes

Conversation

@thatch
Copy link
Contributor

@thatch thatch commented Apr 1, 2021

This should be a longer-term more reliable source of what top-level names come from stdlib. It includes many more names (mostly C extensions) that were missing before; see omnilib/stdlibs#1 for some comparisons vs other possible sources.

While we're at it, take a stance on __main__ being first-party code. This seems to be most commonly used for subcommands in click, or for logging, but seems fragile and untestable to me.

@thatch thatch requested a review from amyreese April 1, 2021 14:58
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 1, 2021
@thatch thatch changed the title Switch source of truth for stdlibs, and use ufmt Switch source of truth for stdlibs Apr 2, 2021
I believe this one to both have better data and a better story around
its source of truth for consistent updates from one py-version to the
next.
@thatch
Copy link
Contributor Author

thatch commented Apr 2, 2021

This could probably use a test for __future__ and __main__ in https://github.com/facebookexperimental/usort/blob/main/usort/tests/config.py because known_factory doesn't appear to have good tests.

@amyreese amyreese merged commit 9d44eaa into facebook:main Apr 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants