Browse Source

Add alias method to Model

Getty Ritter 3 years ago
parent
commit
08bdb2a11e
1 changed files with 4 additions and 0 deletions
  1. 4 0
      stubs/peewee.py

+ 4 - 0
stubs/peewee.py

@@ -36,6 +36,10 @@ class Model:
     def delete_instance(self) -> Any:
         pass
 
+    @classmethod
+    def alias(cls: Type[T]) -> Type[T]:
+        pass
+
 
 # These all do things that MyPy chokes on, so we're going to treat
 # them like methods instead of naming classes