|
@@ -11,6 +11,9 @@ T = TypeVar("T", bound="Model")
|
|
class Model:
|
|
class Model:
|
|
id: int
|
|
id: int
|
|
|
|
|
|
|
|
+ class DoesNotExist(Exception):
|
|
|
|
+ pass
|
|
|
|
+
|
|
@classmethod
|
|
@classmethod
|
|
def create(cls: Type[T], **kwargs) -> T:
|
|
def create(cls: Type[T], **kwargs) -> T:
|
|
pass
|
|
pass
|
|
@@ -30,6 +33,9 @@ class Model:
|
|
def save(self):
|
|
def save(self):
|
|
pass
|
|
pass
|
|
|
|
|
|
|
|
+ def delete(self) -> Any:
|
|
|
|
+ pass
|
|
|
|
+
|
|
|
|
|
|
# These all do things that MyPy chokes on, so we're going to treat
|
|
# These all do things that MyPy chokes on, so we're going to treat
|
|
# them like methods instead of naming classes
|
|
# them like methods instead of naming classes
|