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 #1035

Merged
merged 13 commits into from
Oct 21, 2021
Merged

Google sync #1035

merged 13 commits into from
Oct 21, 2021

Commits on Oct 21, 2021

  1. Expand tests for NamedTuple compliance with tuple semantics.

    PiperOrigin-RevId: 404243181
    Pytype Team authored and rchen152 committed Oct 21, 2021
    Configuration menu
    Copy the full SHA
    380b34a View commit details
    Browse the repository at this point in the history
  2. Finish removing --preserve-union-macros.

    PiperOrigin-RevId: 404307683
    rchen152 committed Oct 21, 2021
    Configuration menu
    Copy the full SHA
    05d00fd View commit details
    Browse the repository at this point in the history
  3. Extract out a function to get all arg type errors in a function call.

    PiperOrigin-RevId: 404345504
    martindemello authored and rchen152 committed Oct 21, 2021
    Configuration menu
    Copy the full SHA
    fa7dd74 View commit details
    Browse the repository at this point in the history
  4. Fix how the enum overlay calls base_type.__new__.

    Instead of trying to manually unpack the value, use Args.starargs, because that's what it's there for.
    
    PiperOrigin-RevId: 404348895
    Solumin authored and rchen152 committed Oct 21, 2021
    Configuration menu
    Copy the full SHA
    eb8b494 View commit details
    Browse the repository at this point in the history
  5. When an attr.ib() call has type errors, construct the attrib anyway.

    This makes sure that when we continue analysing the code we do not get
    cascading errors from a missing attribute in the class, analogous to the way we
    make sure an `__init__` function always constructs something in
    `abstract.function.call_function()`
    
    PiperOrigin-RevId: 404351536
    martindemello authored and rchen152 committed Oct 21, 2021
    Configuration menu
    Copy the full SHA
    ff8b484 View commit details
    Browse the repository at this point in the history
  6. Improve how the enum overlay chooses base types.

    Try to ignore mixins, i.e. classes that don't define `__new__`.
    This isn't perfect, but it's more accurate.
    
    PiperOrigin-RevId: 404368186
    Solumin authored and rchen152 committed Oct 21, 2021
    Configuration menu
    Copy the full SHA
    28799cd View commit details
    Browse the repository at this point in the history
  7. Update oss docs.

    PiperOrigin-RevId: 404392221
    rchen152 committed Oct 21, 2021
    Configuration menu
    Copy the full SHA
    b990241 View commit details
    Browse the repository at this point in the history
  8. Handle all cases of InvalidParameters in match_all_args.

    PiperOrigin-RevId: 404392244
    martindemello authored and rchen152 committed Oct 21, 2021
    Configuration menu
    Copy the full SHA
    430ef64 View commit details
    Browse the repository at this point in the history
  9. Always enable --chex-overlay.

    One more blocklist gone!
    
    PiperOrigin-RevId: 404392980
    rchen152 committed Oct 21, 2021
    Configuration menu
    Copy the full SHA
    dee755e View commit details
    Browse the repository at this point in the history
  10. Construct dict literals for dict(k=v, ...).

    PiperOrigin-RevId: 404693790
    martindemello authored and rchen152 committed Oct 21, 2021
    Configuration menu
    Copy the full SHA
    1769e66 View commit details
    Browse the repository at this point in the history
  11. Support builtin str removeprefix/removesuffix (#1033)

    These are new in Python 3.9: https://docs.python.org/3/library/stdtypes.html#str.removeprefix
    
    Resolves #1033
    
    PiperOrigin-RevId: 404695837
    jdimatteo authored and rchen152 committed Oct 21, 2021
    Configuration menu
    Copy the full SHA
    1b5174b View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    9b4732e View commit details
    Browse the repository at this point in the history
  13. Finish removing --chex-overlay.

    PiperOrigin-RevId: 404858258
    rchen152 committed Oct 21, 2021
    Configuration menu
    Copy the full SHA
    d5b7488 View commit details
    Browse the repository at this point in the history