<section id="classes">
<h2><a href="#classes">Classes</a></h2>
<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.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
+from typing import List, Tuple, Dict, Any, Union, Optional, Callable, TypeVar, Generic
class Foo:
"""A class with properties"""
annotated: List[str]
+_T = TypeVar('Tp')
+
+# Triggers a corner case with _gorg on Py3.6
+class AContainer(Generic[_T]):
+ """A generic class. No parent class info extracted yet."""
+
def annotation(param: List[int], another: bool, third: str = "hello") -> float:
"""An annotated function"""
pass
if sys.version_info < (3, 7):
annotation_list_noparam.__annotations__['a'] = List[TypeVar('T')]
-_T = TypeVar('Tp')
-
def annotation_generic(a: List[_T]) -> _T:
"""Annotation with a generic type"""