Skip to content

Commit

Permalink
flake8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
predragnikolic committed Jul 2, 2024
1 parent d1342b9 commit 057eaff
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions plugin/core/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
from .collections import DottedDict
from .file_watcher import FileWatcherEventType
from .logging import debug, set_debug_logging
from .protocol import FileOperationFilter, FileOperationPattern, FileOperationPatternKind, FileOperationRegistrationOptions, TextDocumentSyncKind
from .protocol import FileOperationFilter
from .protocol import FileOperationPatternKind
from .protocol import FileOperationRegistrationOptions
from .protocol import TextDocumentSyncKind
from .url import filename_to_uri
from .url import parse_uri
from typing import Any, Callable, Dict, Generator, Iterable, List, Optional, TypedDict, TypeVar, Union
Expand Down Expand Up @@ -440,7 +443,10 @@ def matches(self, view: sublime.View) -> bool:
"""Does this selector match the view? A selector with no filters matches all views."""
return any(f(view) for f in self.filters) if self.filters else True

def match_file_operation_filters(file_operation_options: FileOperationRegistrationOptions, path: str, view: sublime.View | None) -> bool:

def match_file_operation_filters(
file_operation_options: FileOperationRegistrationOptions, path: str, view: sublime.View | None
) -> bool:
def matches(file_operation_filter: FileOperationFilter) -> bool:
pattern = file_operation_filter.get('pattern')
scheme = file_operation_filter.get('scheme')
Expand Down

0 comments on commit 057eaff

Please sign in to comment.