mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Updates some Python dependencies and the hooks
This commit is contained in:
		| @@ -247,7 +247,7 @@ class DocumentClassifier: | ||||
|         data_vectorized = self.data_vectorizer.fit_transform(content_generator()) | ||||
|  | ||||
|         # See the notes here: | ||||
|         # https://scikit-learn.org/stable/modules/generated/sklearn.feature_extraction.text.CountVectorizer.html  # noqa: 501 | ||||
|         # https://scikit-learn.org/stable/modules/generated/sklearn.feature_extraction.text.CountVectorizer.html  # noqa: E501 | ||||
|         # This attribute isn't needed to function and can be large | ||||
|         self.data_vectorizer.stop_words_ = None | ||||
|  | ||||
|   | ||||
| @@ -2,6 +2,7 @@ import hashlib | ||||
| import os | ||||
| import shutil | ||||
| from pathlib import Path | ||||
| from typing import Optional | ||||
| from unittest import mock | ||||
|  | ||||
| from django.conf import settings | ||||
| @@ -60,8 +61,8 @@ def make_test_document( | ||||
|     mime_type: str, | ||||
|     original: str, | ||||
|     original_filename: str, | ||||
|     archive: str = None, | ||||
|     archive_filename: str = None, | ||||
|     archive: Optional[str] = None, | ||||
|     archive_filename: Optional[str] = None, | ||||
| ): | ||||
|     doc = document_class() | ||||
|     doc.filename = original_filename | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Trenton H
					Trenton H