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

Support TypeGuard (PEP 647) #9865

Merged
merged 27 commits into from
Jan 18, 2021
Merged

Support TypeGuard (PEP 647) #9865

merged 27 commits into from
Jan 18, 2021

Commits on Dec 30, 2020

  1. Configuration menu
    Copy the full SHA
    9469ffc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    884d9af View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f55b284 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bdc97ef View commit details
    Browse the repository at this point in the history
  5. Update typeshed

    gvanrossum committed Dec 30, 2020
    Configuration menu
    Copy the full SHA
    0ed5434 View commit details
    Browse the repository at this point in the history
  6. Make is_str_list() test work

    This is a bit ugly -- in find_isinstance_check() we wrap the type
    in a way that is only recognized in on specific other place,
    narrow_type_from_binder().
    gvanrossum committed Dec 30, 2020
    Configuration menu
    Copy the full SHA
    47df17d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    fbfeeb6 View commit details
    Browse the repository at this point in the history
  8. Fix mypy and lint

    gvanrossum committed Dec 30, 2020
    Configuration menu
    Copy the full SHA
    03e566f View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    93387bd View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    708f2e5 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    cf067d1 View commit details
    Browse the repository at this point in the history

Commits on Dec 31, 2020

  1. Add two new tests

    - walrus
    - higher-order functions
    gvanrossum committed Dec 31, 2020
    Configuration menu
    Copy the full SHA
    0d2eb06 View commit details
    Browse the repository at this point in the history

Commits on Jan 1, 2021

  1. Configuration menu
    Copy the full SHA
    8264f8d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4335785 View commit details
    Browse the repository at this point in the history

Commits on Jan 2, 2021

  1. Configuration menu
    Copy the full SHA
    b34d2ac View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9bdd779 View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2021

  1. Configuration menu
    Copy the full SHA
    249b6e5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    639b0fc View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2021

  1. Configuration menu
    Copy the full SHA
    4400702 View commit details
    Browse the repository at this point in the history

Commits on Jan 8, 2021

  1. Configuration menu
    Copy the full SHA
    d108c6e View commit details
    Browse the repository at this point in the history
  2. Add many new tests

    These mostly come from Jukka's suggestions.
    Most pass; 4 are currently being skipped:
    
    [case testTypeGuardWithKeywordArgsSwapped-skip]
    is_float(b=1, a=a) incorrectly asserts that b is a float
    
    [case testTypeGuardWithStarArgsTuple-skip]
    [case testTypeGuardWithStarArgsList-skip]
    Horrible things happen with *args
    
    [case testTypeGuardOverload-skip]
    A plain bool function is accepted by a higher-order function
    (overload) requiring a type guard
    
    [case testTypeGuardMethodOverride-skip]
    A plain bool function in a subclass incorrectly is allowed to
    override a type guard in the base class
    gvanrossum committed Jan 8, 2021
    Configuration menu
    Copy the full SHA
    d96beea View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2021

  1. Configuration menu
    Copy the full SHA
    370818f View commit details
    Browse the repository at this point in the history
  2. Capitalize error message

    gvanrossum committed Jan 11, 2021
    Configuration menu
    Copy the full SHA
    9062adb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5e76923 View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2021

  1. Configuration menu
    Copy the full SHA
    37d2a5f View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2021

  1. Configuration menu
    Copy the full SHA
    9d7b6c6 View commit details
    Browse the repository at this point in the history
  2. Fix lint

    gvanrossum committed Jan 18, 2021
    Configuration menu
    Copy the full SHA
    896c90e View commit details
    Browse the repository at this point in the history