Explorar el Código

Adds forgotten type annotation

Adrien Panay hace 7 años
padre
commit
f64412f28d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      tracim/tracim/controllers/content.py

+ 1 - 1
tracim/tracim/controllers/content.py Ver fichero

@@ -242,7 +242,7 @@ class UserWorkspaceFolderFileRestController(TIMWorkspaceContentRestController):
242 242
             # INFO - A.P - Silently intercepts preview exception
243 243
             # As preview generation isn't mandatory, just register it
244 244
             logger.debug(self, 'Exception: {}'.format(e.__str__))
245
-        pdf_available = str(enable_pdf_buttons).lower()
245
+        pdf_available = str(enable_pdf_buttons).lower()  # type: str
246 246
 
247 247
         fake_api_breadcrumb = self.get_breadcrumb(file_id)
248 248
         fake_api_content = DictLikeClass(breadcrumb=fake_api_breadcrumb,