Browse Source

Adds forgotten type annotation

Adrien Panay 7 years ago
parent
commit
f64412f28d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tracim/tracim/controllers/content.py

+ 1 - 1
tracim/tracim/controllers/content.py View File

242
             # INFO - A.P - Silently intercepts preview exception
242
             # INFO - A.P - Silently intercepts preview exception
243
             # As preview generation isn't mandatory, just register it
243
             # As preview generation isn't mandatory, just register it
244
             logger.debug(self, 'Exception: {}'.format(e.__str__))
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
         fake_api_breadcrumb = self.get_breadcrumb(file_id)
247
         fake_api_breadcrumb = self.get_breadcrumb(file_id)
248
         fake_api_content = DictLikeClass(breadcrumb=fake_api_breadcrumb,
248
         fake_api_content = DictLikeClass(breadcrumb=fake_api_breadcrumb,