Update qutebrowser/completion/models/filepathcategory.py

Co-authored-by: Florian Bruhin <me@the-compiler.org>
This commit is contained in:
Andrew 2021-01-19 10:23:44 -05:00 committed by GitHub
parent e95e7991d9
commit 8c9d9c74c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -28,8 +28,8 @@ from PyQt5.QtCore import QAbstractListModel, QModelIndex
class FilePathCategory(QAbstractListModel):
"""Represent filesystem paths matching a pattern."""
def __init__(self, name: str):
super().__init__()
def __init__(self, name: str, parent: QObject = None) -> None:
super().__init__(parent)
self._paths: list = []
self.name = name
self.columns_to_filter = [0]