Skip to content

Commit f697d51

Browse files
committed
Add type parameters to Dict or List
1 parent cac3c40 commit f697d51

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pylsp_mypy/plugin.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def didSettingsChange(workspace: str, settings: Dict[str, Any]) -> None:
154154
settingsCache[workspace] = settings.copy()
155155

156156

157-
def match_exclude_patterns(document_path: str, exclude_patterns: list) -> bool:
157+
def match_exclude_patterns(document_path: str, exclude_patterns: list[str]) -> bool:
158158
"""Check if the current document path matches any of the configures exlude patterns."""
159159
document_path = document_path.replace(os.sep, "/")
160160

@@ -580,9 +580,9 @@ def pylsp_code_actions(
580580
config: Config,
581581
workspace: Workspace,
582582
document: Document,
583-
range: Dict,
584-
context: Dict,
585-
) -> List[Dict]:
583+
range: Dict[str, Any],
584+
context: Dict[str, Any],
585+
) -> List[Dict[str, Any]]:
586586
"""
587587
Provide code actions to ignore errors.
588588

0 commit comments

Comments
 (0)