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

More helpful type guards #14238

Merged
merged 9 commits into from
Jan 31, 2023
Merged

More helpful type guards #14238

merged 9 commits into from
Jan 31, 2023

Commits on Dec 3, 2022

  1. The specification requires positional arguments

    > Type checkers should assume that type narrowing should be applied to the expression that is passed as the first positional argument to a user-defined type guard. [...]
    >
    > If a type guard function is implemented as an instance method or class method, the first positional argument maps to the second parameter (after “self” or “cls”).
    A5rocks committed Dec 3, 2022
    Configuration menu
    Copy the full SHA
    a29a6ec View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3dda329 View commit details
    Browse the repository at this point in the history
  3. Special case staticmethod

    A5rocks committed Dec 3, 2022
    Configuration menu
    Copy the full SHA
    10c7e3f View commit details
    Browse the repository at this point in the history

Commits on Dec 5, 2022

  1. PR review

    A5rocks committed Dec 5, 2022
    Configuration menu
    Copy the full SHA
    3ea4baf View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2022

  1. Fix tests

    A5rocks committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    9c9a791 View commit details
    Browse the repository at this point in the history

Commits on Dec 10, 2022

  1. Small test fixes

    A5rocks committed Dec 10, 2022
    Configuration menu
    Copy the full SHA
    43adc46 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    58af039 View commit details
    Browse the repository at this point in the history

Commits on Dec 11, 2022

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

Commits on Jan 31, 2023

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