summaryrefslogtreecommitdiffstats
path: root/Lib/test/mod_generics_cache.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.6] bpo-28556: typing.get_type_hints: better globalns for classes and ↵Miss Islington (bot)2017-09-141-6/+45
| | | | | | | | | | | | | | | | 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)
* bpo-28556: Various updates to typing (#28) (#77)Mariatta2017-02-141-0/+14
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)