Skip to content
Permalink
Branch: master
Commits on Sep 7, 2019
  1. Merge pull request #404 from google/ts

    rchen152 committed Sep 7, 2019
    Update typeshed to 668988fa8cfd106a73218b23f953f226db89b3d4.
Commits on Sep 6, 2019
  1. Update typeshed to 668988fa8cfd106a73218b23f953f226db89b3d4.

    rchen152 committed Sep 6, 2019
    This update contains a fix for #389 and
    a tempfile change that will help pytype distinguish between BytesIO and TextIO
    in tests.
  2. Merge pull request #403 from google/google_sync

    rchen152 committed Sep 6, 2019
    Google sync
  3. Update pytype __version__ and CHANGELOG for a PyPI release.

    rchen152 committed Sep 6, 2019
    PiperOrigin-RevId: 267640611
Commits on Sep 5, 2019
  1. Merge pull request #402 from google/ts

    rchen152 committed Sep 5, 2019
    Update typeshed to ce0f5b226fc00c732e5b6eb2a9fcb845cd18531c.
  2. Update typeshed to ce0f5b226fc00c732e5b6eb2a9fcb845cd18531c.

    rchen152 committed Sep 5, 2019
Commits on Aug 29, 2019
  1. Merge pull request #399 from google/google_sync

    rchen152 committed Aug 29, 2019
    Update pytype __version__ and CHANGELOG for a PyPI release.
  2. Update pytype __version__ and CHANGELOG for a PyPI release.

    rchen152 committed Aug 29, 2019
    http://dashboards/pytype_status shows only a handful of failures, none of which
    look like pytype bugs.
    
    PiperOrigin-RevId: 266233511
  3. Merge pull request #398 from google/ts

    rchen152 committed Aug 29, 2019
    Update typeshed to fab2ee0d7c38dba0a5142924e53460548fdce0b0.
  4. Update typeshed to fab2ee0d7c38dba0a5142924e53460548fdce0b0.

    rchen152 committed Aug 29, 2019
Commits on Aug 28, 2019
  1. Merge pull request #397 from google/google_sync

    rchen152 committed Aug 28, 2019
    Google sync
  2. Use compat.native_str instead of six.ensure_str.

    rchen152 committed Aug 28, 2019
    The open source tests were complaining about six.ensure_str not existing in
    some Python versions. Since we already have our own compat function that does
    the same thing, it's easier to switch to that than figure out what's going on
    with six.
    
    PiperOrigin-RevId: 265998386
  3. Move a type-annotated test to the appropriate bucket.

    rchen152 committed Aug 28, 2019
    PiperOrigin-RevId: 265965570
  4. Fix a crash caused by a variable having no bindings.

    rchen152 committed Aug 28, 2019
    PiperOrigin-RevId: 265961535
  5. Trace all bindings of a function call together.

    rchen152 committed Aug 26, 2019
    This change allows us to better handle multiple same-named function calls on
    the same line.
    
    PiperOrigin-RevId: 265553790
  6. Implement MatchAstVisitor.match_Subscript for subscript accesses.

    rchen152 committed Aug 26, 2019
    * Adds a _suppress_opcode_tracing method to the vm to avoid tracing function
      calls for binary operations. I also noticed that the hack used to avoid
      tracing function calls for properties was broken, so I replaced that hack
      with this one.
    * Changes _get_traces to match on either a single symbol or a tuple of symbols
      so we can match both __getitem__ and __getslice__.
    * Moves the attribute matching tests into their own test case.
    
    PiperOrigin-RevId: 265533024
  7. Add an experimental --precise-return mode to pytype.

    rchen152 committed Aug 26, 2019
    This mode causes pytype to use the first return type it finds in the case of a
    failed function call, rather than Any. The immediate purpose is to improve
    opcode tracing, so that type errors don't immediately cause type information to
    be lost, but it's also a potential pytype improvement worth experimenting with.
    
    PiperOrigin-RevId: 265510179
  8. Support matching against typing.Literal function parameters.

    rchen152 committed Aug 23, 2019
    With this change, we should be able to support all Literal uses in typeshed
    that don't involve enums.
    
    #Squeegee
    
    PiperOrigin-RevId: 265144891
  9. Rewrite google_utils to utils in all files in pytype/tools/xref/.

    rchen152 committed Aug 23, 2019
    Found one more test failure =/ Also, the Python 2 tests are passing locally but
    failing to even start on Travis, but hopefully that's just a transient issue.
    
    PiperOrigin-RevId: 265121559
  10. Have copybara ignore pytype/cmake/**.

    rchen152 committed Aug 23, 2019
    Changes to this directory are closely tied to pytype/build_scripts (which is
    already ignored) and only affect the open source tests.
    
    PiperOrigin-RevId: 265093693
  11. Merge pull request #396 from google/travis

    rchen152 committed Aug 28, 2019
    Add a verbose mode to print failing test logs to stderr.
  12. Print logs to stderr rather than stdout.

    rchen152 committed Aug 28, 2019
  13. Add a verbose mode to print failing test logs to stdout.

    rchen152 committed Aug 28, 2019
    Currently, when a test fails on Travis, we get no information except the
    test name and a path to a log file we can't access. Instead, we should
    print the log file to stdout.
Commits on Aug 24, 2019
  1. Merge pull request #395 from google/google_sync

    rchen152 committed Aug 24, 2019
    Google sync
Commits on Aug 23, 2019
  1. Remove unused imports, version check hack in xref.

    rchen152 committed Aug 23, 2019
    The imports change is to get the open source tests passing again, which also
    requires #394. After that PR, we'll no
    longer need most of the version checks in the tests.
    
    PiperOrigin-RevId: 265080707
  2. Import a README change.

    rchen152 committed Aug 23, 2019
    PiperOrigin-RevId: 264968002
  3. Rename abstract.Callable to abstract.CallableClass.

    rchen152 committed Aug 22, 2019
    We had Class, PyTDClass, InterpreterClass, ParameterizedClass, TupleClass, ...
    and Callable.
    
    PiperOrigin-RevId: 264907730
  4. Improve tracing of literals.

    rchen152 committed Aug 19, 2019
    * Adds match methods for literals.
    * Adds some test decorators to make it easier to run different tests in
      different host versions.
    * Tweaks _get_node_name to avoid NotImplementedError in the case that a method
      is called on a literal.
    
    PiperOrigin-RevId: 264264816
  5. Count traces and keep track of already matched ones in MatchAstVisitor.

    rchen152 committed Aug 19, 2019
    * Fixes a match_Attr bug by not letting the same trace match multiple nodes.
    * Removes the need for some `break` statements by adding a `maxmatch` parameter
      to _get_traces().
    * Changes the MRO of xref.indexer.IndexVisitor to accommodate the fact that
      traces.traces.MatchAstVisitor and xref.indexer.ScopedVisitor both define
      enter_Module. Also resolves some lint warnings in xref.indexer.
    
    #Squeegee
    
    PiperOrigin-RevId: 264246775
  6. Parse string literals in pyi files.

    rchen152 committed Aug 19, 2019
    * Turns BYTESTRING, UNICODESTRING, and unprefixed strings (previously treated
      as names) into STRING objects.
    * Stops supporting quoted forward references. Since pyi files natively support
      forward references, it's never necessary to quote them anyway. If we wanted
      to continue supporting quoted references, we'd have to either allow STRING
      everywhere a type is allowed or manually copy every rule involving `type` to
      create an equivalent one with STRING. The first option makes postprocessing a
      lot harder because, at the point a new type is created, we wouldn't know
      whether to keep the string prefix and quotes for use as a literal or to throw
      them away for use as a name. The second option is ugly. Thus, I'm inclined to
      drop support instead. All of typeshed still parses.
    * Makes a couple other tweaks to avoid parsing conflicts:
      * Allows only lists of string literals for __slots__ in the syntax, which
        simplifies their handling in parser.py.
      * Does not allow a list of types (e.g., `[int, str]`) as a top-level type.
    
    #Squeegee
    
    PiperOrigin-RevId: 264208245
  7. Update pytype CHANGELOG and fix a CMake bug.

    rchen152 committed Aug 19, 2019
    node_utils.py was still in the indexer target after being moved to its own
    target, and pytype.pytd_lib doesn't exist in CMake because it has empty srcs.
    
    PiperOrigin-RevId: 264198994
  8. Merge pull request #394 from google/test

    rchen152 committed Aug 23, 2019
    Don't lint or test xref in Python 2.
  9. Don't lint or test xref in Python 2.

    rchen152 committed Aug 23, 2019
  10. Merge pull request #392 from caleb15/patch-1

    rchen152 committed Aug 23, 2019
    add WSL directions
Commits on Aug 15, 2019
  1. Merge pull request #388 from google/google_sync

    rchen152 committed Aug 15, 2019
    Google sync
Older
You can’t perform that action at this time.