We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2a3d55 commit 848013aCopy full SHA for 848013a
1 file changed
patterns/structural/3-tier.py
@@ -5,8 +5,6 @@
5
6
from typing import Dict, KeysView, Optional, Type, TypeVar, Union
7
8
-T = TypeVar("T")
9
-
10
11
class Data:
12
""" Data Store Class """
@@ -17,9 +15,7 @@ class Data:
17
15
"cheese": {"price": 2.00, "quantity": 10},
18
16
}
19
20
- def __get__(
21
- self, obj: Optional[T], klas: Type[T]
22
- ) -> Dict[str, Dict[str, Dict[str, Union[int, float]]]]:
+ def __get__(self, obj, klas):
23
24
print("(Fetching from Data Store)")
25
return {"products": self.products}
0 commit comments