Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add also positive cache and registry links
  • Loading branch information
Ivan Levkivskyi authored and ilevkivskyi committed Feb 4, 2017
commit 6382c8a16fe511a80fedb9b8bba79425d1f4810f
3 changes: 3 additions & 0 deletions src/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1000,6 +1000,9 @@ def __new__(cls, name, bases, namespace,
if isinstance(extra, abc.ABCMeta):
self._abc_registry = extra._abc_registry
self._abc_cache = extra._abc_cache
elif origin is not None:
self._abc_registry = _gorg(self)._abc_registry
self._abc_cache = _gorg(self)._abc_cache

if origin and hasattr(origin, '__qualname__'): # Fix for Python 3.2.
self.__qualname__ = origin.__qualname__
Expand Down