瀏覽代碼

Adds forgotten type annotation

Adrien Panay 7 年之前
父節點
當前提交
f64412f28d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tracim/tracim/controllers/content.py

+ 1 - 1
tracim/tracim/controllers/content.py 查看文件

@@ -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,