浏览代码

Define __slots__ for Endpoint

Getty Ritter 4 年之前
父节点
当前提交
a17068d89c
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      lc/web.py

+ 1 - 0
lc/web.py

@@ -19,6 +19,7 @@ class ApiOK:
 
 
 class Endpoint:
+    __slots__ = ('user',)
     def __init__(self):
         self.user = None