Pārlūkot izejas kodu

Adds forgotten type annotation

Adrien Panay 7 gadus atpakaļ
vecāks
revīzija
f64412f28d
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      tracim/tracim/controllers/content.py

+ 1 - 1
tracim/tracim/controllers/content.py Parādīt failu

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