Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use variable annotations instead of type comments on Python 3.8 #2450

Merged
merged 18 commits into from
Apr 20, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
change import
  • Loading branch information
predragnikolic committed Feb 13, 2024
commit c70cd57055ddeb8ca0b4ff36acb8531dd81a6e07
6 changes: 2 additions & 4 deletions plugin/core/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 6,7 @@
from .typing import cast
from .url import filename_to_uri
from .url import parse_uri
from wcmatch.glob import BRACE
from wcmatch.glob import globmatch
from wcmatch.glob import GLOBSTAR
from wcmatch import glob
import contextlib
import fnmatch
import os
Expand Down Expand Up @@ -411,7 409,7 @@ def __call__(self, view: sublime.View) -> bool:
if isinstance(uri, str) and parse_uri(uri)[0] != self.scheme:
return False
if self.pattern:
if not globmatch(view.file_name() or "", self.pattern, flags=GLOBSTAR | BRACE):
if not glob.globmatch(view.file_name() or "", self.pattern, flags=glob.GLOBSTAR | glob.BRACE):
return False
return True

Expand Down
Loading