<dl class="m-doc">
<dt>class <a href="inspect_annotations.AContainer.html" class="m-doc">AContainer</a></dt>
<dd>A generic class. No parent class info extracted yet.</dd>
+ <dt>class <a href="inspect_annotations.AContainer2.html" class="m-doc">AContainer2</a></dt>
+ <dd>Another class derived from a typing thing.</dd>
<dt>class <a href="inspect_annotations.Foo.html" class="m-doc">Foo</a></dt>
<dd>A class with properties</dd>
<dt>class <a href="inspect_annotations.FooSlots.html" class="m-doc">FooSlots</a></dt>
import sys
-from typing import List, Tuple, Dict, Any, Union, Optional, Callable, TypeVar, Generic
+from typing import List, Tuple, Dict, Any, Union, Optional, Callable, TypeVar, Generic, Iterator
class Foo:
"""A class with properties"""
_T = TypeVar('Tp')
-# Triggers a corner case with _gorg on Py3.6
+# Triggers a corner case with _gorg on Py3.6 (the member has to be ignored).
+# AContainer2 is not derived directly from Generic but has _gorg also.
class AContainer(Generic[_T]):
"""A generic class. No parent class info extracted yet."""
+class AContainer2(Iterator):
+ """Another class derived from a typing thing."""
def annotation(param: List[int], another: bool, third: str = "hello") -> float:
"""An annotated function"""