Explorar el Código

Define __slots__ for Endpoint

Getty Ritter hace 4 años
padre
commit
a17068d89c
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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