Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [3.6] bpo-28556: typing.get_type_hints: better globalns for classes and ↵ | Miss Islington (bot) | 2017-09-14 | 1 | -7/+31 |
| | | | | | | | | | | | | | | | | modules (GH-3582) (#3583) This makes the default behavior (without specifying `globalns` manually) more predictable for users, finds the right globalns automatically. Implementation for classes assumes has a `__module__` attribute and that module is present in `sys.modules`. It does this recursively for all bases in the MRO. For modules, the implementation just uses their `__dict__` directly. This is backwards compatible, will just raise fewer exceptions in naive user code. Originally implemented and reviewed at https://github.com/python/typing/pull/470. (cherry picked from commit f350a268a7071ce7d7a5bb86a9b1229782d4963b) | ||||
* | [3.6] bpo-28556: Minor updates to typing module (GH-3550) (#3558) | Miss Islington (bot) | 2017-09-14 | 1 | -0/+7 |
| | | | | | * Copy changes to typing from upstream repo * Add NEWS entry (cherry picked from commit 65bc62052fe5d550cb14c0033e8a2550618fb7b9) | ||||
* | bpo-28556: Updates to typing module (GH-2076) (GH-2087) | Mariatta | 2017-06-10 | 1 | -3/+36 |
| | | | | | | | This PR contains two updates to typing module: - Support ContextManager on all versions (original PR by Jelle Zijlstra). - Add generic AsyncContextManager.. (cherry picked from commit 29fda8db16e0edab92841277fa223f844f5a92cc) | ||||
* | [3.6] bpo-28556: Routine updates to typing (GH-1366) (#1416) | Mariatta | 2017-05-03 | 1 | -5/+46 |
| | | | | | | - Add NoReturn type - Use WrapperDescriptorType (original PR by Jim Fasarakis-Hilliard) - Minor bug-fixes (cherry picked from commit f06e0218ef6007667f5d61184b85a81a0466d3ae) | ||||
* | [3.6] bpo-28556: Update to typing: treat subscripted generics as proxies ↵ | Mariatta | 2017-02-25 | 1 | -0/+35 |
| | | | | | | | (GH-265) (GH-268) (cherry picked from commit abb3b8ad94d699c8560d94ee9bac9c917b382abe) (cherry picked from commit 365cb5bb9069273e6970c9d5d17ee2fe5003e7ac) | ||||
* | bpo-28556: Various updates to typing (#28) (#77) | Mariatta | 2017-02-14 | 1 | -25/+212 |
| | | | | | | | | | | | | | | various updates from upstream python/typing repo: - Added typing.Counter and typing.ChainMap generics - More flexible typing.NamedTuple - Improved generic ABC caching - More tests - Bugfixes - Other updates * Add Misc/NEWS entry (cherry picked from commit b692dc8475a032740576129d0990ddc3edccab2b) | ||||
* | Issue #28556: Allow defining methods in NamedTuple class syntax (#362) | Guido van Rossum | 2017-01-23 | 1 | -5/+27 |
| | |||||
* | Issue #28556: various style fixes for typing.py | Guido van Rossum | 2017-01-23 | 1 | -10/+21 |
| | |||||
* | Issue #29198: add AsyncGenerator (Jelle Zijlstra) | Guido van Rossum | 2017-01-18 | 1 | -0/+42 |
| | |||||
* | Issue #28556: allow default values in class form of NamedTuple -- Jelle Zijlstra | Guido van Rossum | 2017-01-18 | 1 | -0/+26 |
| | |||||
* | Issue #28556: merge 5 more typing changes from upstream (#340, #344, #348, ↵ | Guido van Rossum | 2017-01-18 | 1 | -4/+33 |
| | | | | #349, #350) | ||||
* | Issue #29011: Fix an important omission by adding Deque to the typing module. | Raymond Hettinger | 2017-01-17 | 1 | -0/+11 |
| | |||||
* | Issue #28790: Fix error when using Generic and __slots__ (Ivan L) | Guido van Rossum | 2016-11-29 | 1 | -0/+38 |
| | |||||
* | Issue #28556: two more small upstream changes by Ivan Levkivskyi (#329, #330) | Guido van Rossum | 2016-11-19 | 1 | -2/+19 |
| | |||||
* | Issue #28556: Allow keyword syntax for NamedTuple (Ivan Levkivskyi) ↵ | Guido van Rossum | 2016-11-15 | 1 | -0/+14 |
| | | | | (upstream #321) | ||||
* | Issue #28649: fix-typing-test-v2.diff | Guido van Rossum | 2016-11-09 | 1 | -3/+4 |
| | |||||
* | Issue #28556: More typing.py updates from upstream. | Guido van Rossum | 2016-11-09 | 1 | -16/+47 |
| | |||||
* | Issue #28556: updates to typing.py (add Coroutine, prohibit Generic[T]()) | Guido van Rossum | 2016-10-29 | 1 | -1/+22 |
| | |||||
* | Issue #28556: updates to typing.py (fix copy, deepcopy, pickle) | Guido van Rossum | 2016-10-29 | 1 | -0/+19 |
| | |||||
* | Issue #28556: updates to typing.py | Guido van Rossum | 2016-10-29 | 1 | -21/+136 |
| | |||||
* | Two minor typing.py fixes (upstream #305) | Guido van Rossum | 2016-10-22 | 1 | -1/+1 |
| | |||||
* | Issue #28482: Skip a few test_typing tests if asyncio unavailable | Guido van Rossum | 2016-10-21 | 1 | -7/+10 |
| | |||||
* | Sync typing.py from upstream | Guido van Rossum | 2016-10-21 | 1 | -5/+91 |
| | |||||
* | Merge further typing.py changes from upstream. | Guido van Rossum | 2016-10-09 | 1 | -0/+79 |
| | |||||
* | More updates from upstream typing.py | Guido van Rossum | 2016-10-03 | 1 | -29/+38 |
| | |||||
* | Update typing.py and test_typing.py from upstream ↵ | Guido van Rossum | 2016-09-27 | 1 | -223/+114 |
| | | | | (https://github.com/python/typing) | ||||
* | Issue #28079: Update typing and test typing from python/typing repo. | Guido van Rossum | 2016-09-11 | 1 | -2/+140 |
| | | | | Ivan Levkivskyi (3.5 version) | ||||
* | A new version of typing.py from https://github.com/python/typing. | Guido van Rossum | 2016-08-23 | 1 | -1/+12 |
| | |||||
* | Sync typing.py with upstream. | Guido van Rossum | 2016-06-08 | 1 | -2/+36 |
| | | | | | | | | | (Upstream is https://github.com/python/typing) - Add TYPE_CHECKING (false at runtime, true in type checkers) (upstream #230). - Avoid error on Union[xml.etree.cElementTree.Element, str] (upstream #229). - Repr of Tuple[()] should be 'Tuple[()]' (upstream #231). - Add NewType() (upstream #189). | ||||
* | Added Type[C] implementation to typing.py. | Guido van Rossum | 2016-05-24 | 1 | -0/+28 |
| | |||||
* | Fix #27014 -- infinite recursion using typing.py. | Guido van Rossum | 2016-05-18 | 1 | -3/+22 |
| | |||||
* | Replace assert statements with self.assertXxx() calls | Zachary Ware | 2016-04-19 | 1 | -280/+304 |
| | | | | Sync with upstream, see github.com/python/typing/pull/205 | ||||
* | typing.py: Consider ellipsis in TupleMeta.__eq__. By Kalle Tuure. ↵ | Guido van Rossum | 2016-04-18 | 1 | -0/+6 |
| | | | | github.com/python/typing/pull/201. | ||||
* | Sync test_typing.py with upstream git repo (typing.py was already synced). | Guido van Rossum | 2016-04-18 | 1 | -0/+20 |
| | |||||
* | Many changes from the upstream repo (https://github.com/python/typing). | Guido van Rossum | 2016-04-05 | 1 | -27/+129 |
| | | | | | | | | | | | | | | | | | | | | | | | | This syncs to rev 7b43ada77821d23e55e3a4b35f6055a59b9e1ad7 there. Summary: - Add typing.DefaultDict (as a generic variant of collections.defaultdict). - Use collections.Reversible if it exists (only relevant for Python 3.6). - Revamped generic class behavior to conform to updated PEP 484. - Improve speed of Generic.__new__. - Make sure __init__ is called for new Generic instances. Fix issue #26391. - Refactor async support to be compatible with 3.2, 3.3, 3.4. - Remove 'io' and 're' from __all__ (they still exist, just not included by "import *"). Fix issue #26234. - Change @overload -- you can now use it outside stubs (you still cannot call the decorated function though). | ||||
* | Add Awaitable, AsyncIterable, AsyncIterator to typing.py. | Guido van Rossum | 2015-12-04 | 1 | -0/+61 |
| | |||||
* | Issue #25665: Test pickling with all protocols in test_typing. | Serhiy Storchaka | 2015-11-20 | 1 | -8/+10 |
| | |||||
* | Issue #25665: Make NamedTuple picklable. | Guido van Rossum | 2015-11-19 | 1 | -0/+8 |
| | |||||
* | Remove unused imports from test_typing.py. | Guido van Rossum | 2015-11-19 | 1 | -5/+0 |
| | |||||
* | Issue #25472: In B[<type>], insert B in front of __bases__, to make the ↵ | Guido van Rossum | 2015-11-19 | 1 | -0/+30 |
| | | | | __dict__ descriptor work. | ||||
* | Issue #25390: typing: Don't crash on Union[str, Pattern]. | Guido van Rossum | 2015-10-19 | 1 | -0/+4 |
| | |||||
* | Fix issue #24635. | Guido van Rossum | 2015-09-04 | 1 | -3/+14 |
| | |||||
* | Issue #23973: Update typing.py from GitHub repo. | Guido van Rossum | 2015-08-05 | 1 | -201/+74 |
| | |||||
* | Preliminary typing.py, anticipating provisional acceptance of PEP 484. | Guido van Rossum | 2015-05-22 | 1 | -0/+1373 |
There area bunch of TODOs here, but the biggest (not mentioned in the file) is that I'm going to take out __instancecheck__ and __subclasscheck__. However my personal schedule is such that I probably won't have time for these before Larry tags beta 1. But I will try -- this commit is mostly to make sure that typing.py doesn't completely miss the train. PS. I'm tracking issues at https://github.com/ambv/typehinting/issues. |