Skip to content

Commit

Permalink
Merge pull request #738 from google/google_sync
Browse files Browse the repository at this point in the history
Google sync
  • Loading branch information
rchen152 authored Nov 23, 2020
2 parents ffc6aab + 9738514 commit d3960d8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Version 2020.11.23
* Treat modules as hashable.
* Support typing_extensions.Literal in source files.
* Take classmethods and staticmethods into account in protocols.

Version 2020.11.12
* Support `# type: ignore[errorcode, ...]` in pyi files.
* Always allow classes to match typing.Hashable.
Expand Down
6 changes: 3 additions & 3 deletions docs/developers/type_stubs.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* [AST simplification](#ast-simplification)
* [Pickling](#pickling)

<!-- Added by: rechen, at: 2020-11-09T02:22-08:00 -->
<!-- Added by: rechen, at: 2020-11-23T02:16-08:00 -->

<!--te-->

Expand Down Expand Up @@ -187,7 +187,7 @@ class Company:
pytype produces a raw pyi in which `Company.employees` is inferred to be a list
of both CEOs and employees:

```python {highlight="lines:5"}
```python
from typing import List, Union
class Employee: ...
class CEO(Employee): ...
Expand All @@ -200,7 +200,7 @@ class Company:
The `optimize.SimplifyUnionsWithSuperclasses` visitor then notices that a CEO is
a type of employee and simplifies the pyi to:

```python {highlight="lines:5"}
```python
from typing import List
class Employee: ...
class CEO(Employee): ...
Expand Down
2 changes: 1 addition & 1 deletion pytype/__version__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# pylint: skip-file
__version__ = '2020.11.12'
__version__ = '2020.11.23'

0 comments on commit d3960d8

Please sign in to comment.