Skip to content

Commit

Permalink
Remove more incompatible typing labels on 3.5 and 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
andfoy committed Nov 12, 2020
1 parent db32912 commit a4ff010
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pyls_spyder/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@
"""pyls-spyder misc utillites."""

# Standard library imports
import re
from typing import Tuple, Optional, Dict
from typing import Tuple, Dict


class RegexEvaluator:
def __init__(self, regex_map: Dict):
self.regexes = regex_map

def match(self, string: str) -> Tuple[Optional[str], Optional[re.Match]]:
def match(self, string: str) -> Tuple:
re_match = None
re_rule = None
for regex_name in self.regexes:
Expand Down

0 comments on commit a4ff010

Please sign in to comment.