Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Fix a bug in Generic.__new__ (GH-6758) | Ivan Levkivskyi | 2018-05-11 | 1 | -1/+1 | |
| | ||||||
* | bpo-28556: Minor fixes for typing module (GH-6732) | Ivan Levkivskyi | 2018-05-09 | 1 | -2/+8 | |
| | | | | This also fixes https://bugs.python.org/issue33420 | |||||
* | Spelling fixes to docs, docstrings, and comments (GH-6374) | Ville Skyttä | 2018-04-20 | 1 | -1/+1 | |
| | ||||||
* | bpo-32873: Remove a name hack for generic aliases in typing module (GH-6376) | Ivan Levkivskyi | 2018-04-05 | 1 | -1/+14 | |
| | | | | This removes a hack and replaces it with a proper mapping {'list': 'List', 'dict': 'Dict', ...}. | |||||
* | Call super in Generic.__init_subclass__ (#6356) | Ivan Levkivskyi | 2018-04-04 | 1 | -0/+1 | |
| | ||||||
* | bpo-32873: Treat type variables and special typing forms as immutable by ↵ | Ivan Levkivskyi | 2018-03-26 | 1 | -5/+29 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | copy and pickle (GH-6216) This also fixes python/typing#512 This also fixes python/typing#511 As was discussed in both issues, some typing forms deserve to be treated as immutable by copy and pickle modules, so that: * copy(X) is X * deepcopy(X) is X * loads(dumps(X)) is X # pickled by reference This PR adds such behaviour to: * Type variables * Special forms like Union, Any, ClassVar * Unsubscripted generic aliases to containers like List, Mapping, Iterable This not only resolves inconsistencies mentioned in the issues, but also improves backwards compatibility with previous versions of Python (including 3.6). Note that this requires some dances with __module__ for type variables (similar to NamedTuple) because the class TypeVar itself is define in typing, while type variables should get module where they were defined. https://bugs.python.org/issue32873 | |||||
* | bpo-33061: Add missing 'NoReturn' to __all__ in typing.py (GH-6127) | aetracht | 2018-03-19 | 1 | -0/+1 | |
| | ||||||
* | bpo-32226: PEP 560: improve typing module (#4906) | Ivan Levkivskyi | 2018-01-20 | 1 | -1471/+664 | |
| | | | | This PR re-designs the internal typing API using the new PEP 560 features. However, there are only few minor changes in the public API. | |||||
* | [bpo-28556] Minor fixes for typing module (#4710) | Ivan Levkivskyi | 2017-12-05 | 1 | -8/+4 | |
| | ||||||
* | bpo-28556: typing.get_type_hints: better globalns for classes and modules ↵ | Łukasz Langa | 2017-09-14 | 1 | -9/+18 | |
| | | | | | | | | | | | | | | | (#3582) 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. | |||||
* | bpo-28556: Minor updates to typing module (#3550) | Ivan Levkivskyi | 2017-09-13 | 1 | -50/+29 | |
| | | | | * Copy changes to typing from upstream repo * Add NEWS entry | |||||
* | bpo-28556: Updates to typing module (#2076) | Ivan Levkivskyi | 2017-06-10 | 1 | -2/+59 | |
| | | | | | | | This PR contains two updates to typing module: - Support ContextManager on all versions (original PR by Jelle Zijlstra). - Add generic AsyncContextManager. | |||||
* | bpo-28556: Routine updates to typing (#1366) | Ivan Levkivskyi | 2017-05-02 | 1 | -4/+31 | |
| | | | | | - Add NoReturn type - Use WrapperDescriptorType (original PR by Jim Fasarakis-Hilliard) - Minor bug-fixes | |||||
* | bpo-28556: Fix regression that sneaked into recent typing updates (GH-270) | Ivan Levkivskyi | 2017-02-24 | 1 | -1/+4 | |
| | ||||||
* | Update to typing: treat subscripted generics as proxies (#265) | Ivan Levkivskyi | 2017-02-24 | 1 | -0/+7 | |
| | ||||||
* | bpo-28556: Various updates to typing (#28) | Ivan Levkivskyi | 2017-02-13 | 1 | -33/+105 | |
| | | | | | | | | | | | | | | | 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 * Add issue number | |||||
* | Issue #28556: Allow defining methods in NamedTuple class syntax (#362) | Guido van Rossum | 2017-01-23 | 1 | -0/+4 | |
| | ||||||
* | Issue #28556: various style fixes for typing.py | Guido van Rossum | 2017-01-23 | 1 | -26/+47 | |
| | ||||||
* | Issue #29198: add AsyncGenerator (Jelle Zijlstra) | Guido van Rossum | 2017-01-18 | 1 | -1/+9 | |
| | ||||||
* | Issue #28556: allow default values in class form of NamedTuple -- Jelle Zijlstra | Guido van Rossum | 2017-01-18 | 1 | -1/+16 | |
| | ||||||
* | Issue #28556: merge 5 more typing changes from upstream (#340, #344, #348, ↵ | Guido van Rossum | 2017-01-18 | 1 | -8/+43 | |
| | | | | #349, #350) | |||||
* | Issue #29011: Fix an important omission by adding Deque to the typing module. | Raymond Hettinger | 2017-01-17 | 1 | -0/+10 | |
| | ||||||
* | Issue #28790: Fix error when using Generic and __slots__ (Ivan L) | Guido van Rossum | 2016-11-29 | 1 | -3/+15 | |
| | ||||||
* | Issue #28556: upstream improvements to docstrings and error messages by Ivan ↵ | Guido van Rossum | 2016-11-21 | 1 | -40/+44 | |
| | | | | Levkivskyi (#331) | |||||
* | Issue #28556: two more small upstream changes by Ivan Levkivskyi (#329, #330) | Guido van Rossum | 2016-11-19 | 1 | -0/+2 | |
| | ||||||
* | Issue #28556: Allow keyword syntax for NamedTuple (Ivan Levkivskyi) ↵ | Guido van Rossum | 2016-11-15 | 1 | -37/+39 | |
| | | | | (upstream #321) | |||||
* | Issue #28649: fix second issue with _ForwardRef (#328) | Guido van Rossum | 2016-11-10 | 1 | -1/+1 | |
| | ||||||
* | Issue #28649: fix first issue with _ForwardRef (#327) | Guido van Rossum | 2016-11-10 | 1 | -10/+3 | |
| | ||||||
* | Issue #28649: typing-clear-caches.patch | Guido van Rossum | 2016-11-09 | 1 | -0/+4 | |
| | ||||||
* | Issue #28556: More typing.py updates from upstream. | Guido van Rossum | 2016-11-09 | 1 | -134/+72 | |
| | ||||||
* | Issue #28556: updates to typing.py (add Coroutine, prohibit Generic[T]()) | Guido van Rossum | 2016-10-29 | 1 | -8/+23 | |
| | ||||||
* | Issue #28556: updates to typing.py (fix copy, deepcopy, pickle) | Guido van Rossum | 2016-10-29 | 1 | -0/+8 | |
| | ||||||
* | Issue #28556: updates to typing.py | Guido van Rossum | 2016-10-29 | 1 | -334/+404 | |
| | ||||||
* | Two minor typing.py fixes (upstream #305) | Guido van Rossum | 2016-10-22 | 1 | -5/+1 | |
| | ||||||
* | Fix indent | Guido van Rossum | 2016-10-21 | 1 | -3/+3 | |
| | ||||||
* | Sync typing.py from upstream | Guido van Rossum | 2016-10-21 | 1 | -28/+79 | |
| | ||||||
* | Issue #28339: Remove ByteString.register(memoryview(...)) from typing.py. | Guido van Rossum | 2016-10-09 | 1 | -3/+0 | |
| | ||||||
* | Merge further typing.py changes from upstream. | Guido van Rossum | 2016-10-09 | 1 | -1/+4 | |
| | ||||||
* | More updates from upstream typing.py | Guido van Rossum | 2016-10-03 | 1 | -35/+70 | |
| | ||||||
* | Update typing.py and test_typing.py from upstream ↵ | Guido van Rossum | 2016-09-27 | 1 | -339/+302 | |
| | | | | (https://github.com/python/typing) | |||||
* | Issue #28079: Update typing and test typing from python/typing repo. | Guido van Rossum | 2016-09-11 | 1 | -61/+267 | |
| | | | | Ivan Levkivskyi (3.5 version) | |||||
* | A new version of typing.py from https://github.com/python/typing. | Guido van Rossum | 2016-08-23 | 1 | -25/+43 | |
| | ||||||
* | Sync typing.py with upstream. | Guido van Rossum | 2016-06-08 | 1 | -2/+40 | |
| | | | | | | | | | (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). | |||||
* | Comment/docstring tweaks for typing.py. | Guido van Rossum | 2016-05-26 | 1 | -1/+2 | |
| | ||||||
* | Added Type[C] implementation to typing.py. | Guido van Rossum | 2016-05-24 | 1 | -1/+33 | |
| | ||||||
* | Fix #27014 -- infinite recursion using typing.py. | Guido van Rossum | 2016-05-18 | 1 | -11/+9 | |
| | ||||||
* | typing.py: Consider ellipsis in TupleMeta.__eq__. By Kalle Tuure. ↵ | Guido van Rossum | 2016-04-18 | 1 | -1/+2 | |
| | | | | github.com/python/typing/pull/201. | |||||
* | Issue #25609: Backport typing.ContextManager. | Brett Cannon | 2016-04-15 | 1 | -0/+7 | |
| | | | | | | This has no semantic impact as the class is guarded with a hasattr() check; this is being done to keep typing.py in sync between Python 3.5 and 3.6 as requested by Guido. | |||||
* | Add Text=str. Make ItemsView derive from AbstractSet, not Set (which is the ↵ | Guido van Rossum | 2016-04-05 | 1 | -1/+6 | |
| | | | | concrete set). | |||||
* | Many changes from the upstream repo (https://github.com/python/typing). | Guido van Rossum | 2016-04-05 | 1 | -152/+242 | |
| | | | | | | | | | | | | | | | | | | | | | | | | 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). |