We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14e1758 commit eb8982fCopy full SHA for eb8982f
15-more-types/petbox/petbox.py
@@ -1,3 +1,8 @@
1
+"""
2
+Example adapted from `Atomic Kotlin` by Bruce Eckel & Svetlana Isakova,
3
+chapter `Creating Generics`, section `Variance`.
4
5
+
6
from typing import TypeVar, Generic, Any
7
8
15-more-types/petbox/petbox_demo.py
from typing import TYPE_CHECKING
from petbox import *
@@ -11,7 +16,7 @@
11
16
12
17
animal = cat_box.get()
13
18
14
-#if TYPE_CHECKING:
19
+# if TYPE_CHECKING:
15
20
# reveal_type(animal) # Revealed: petbox.Cat*
21
22
0 commit comments