Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google sync #1522

Merged
merged 5 commits into from
Oct 27, 2023
Merged

Google sync #1522

merged 5 commits into from
Oct 27, 2023

Conversation

rchen152
Copy link
Contributor

No description provided.

rchen152 and others added 5 commits October 27, 2023 10:29
…oads.

* Never is the new name for NoReturn. Note: with this change, we always use
  Never in error messages and pyi files. It would be more correct to use Never
  in 3.11+ and NoReturn in 3.10-, but we don't bother with this for other
  typing features anyway, and always using Never is simpler.
* clear_overloads and get_overloads are for runtime introspection, so we don't
  need anything beyond the type signatures, which are already in typing.pytd.

I also got rid of an unnecessary build_self method. I realized when doing
clear_overloads and get_overloads that we already have a _builder_from_name
helper that does what build_self was doing, but better.

PiperOrigin-RevId: 576965976
Tracks the type of every MATCH_ opcode in a case branch; if we have anything
beyond a simple CMP we stop tracking enums for exhaustiveness.

PiperOrigin-RevId: 576982294
* Aliases typing.assert_type to our assert_type pseudo-builtin.
* Removes single-argument assert_type form. This functionality didn't make it
  into the typing library variant. I don't think it's used much anyway,
  given that pytype_extensions.assert_type doesn't support it at runtime, and
  no one's ever noticed.

PiperOrigin-RevId: 577000283
* Adds a typing alias for the reveal_type pseudo-builtin.
* Implements typing.assert_never.

PiperOrigin-RevId: 577016784
* Aliases typing.assert_type to our assert_type pseudo-builtin.
* Removes single-argument assert_type form. This functionality didn't make it
  into the typing library variant. I don't think it's used much anyway,
  given that pytype_extensions.assert_type doesn't support it at runtime, and
  no one's ever noticed.

PiperOrigin-RevId: 577000283
@rchen152 rchen152 merged commit 59e0b01 into main Oct 27, 2023
19 checks passed
@rchen152 rchen152 deleted the google_sync branch October 27, 2023 18:29
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