浏览代码

Add alias method to Model

Getty Ritter 4 年之前
父节点
当前提交
08bdb2a11e
共有 1 个文件被更改,包括 4 次插入0 次删除
  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