ecoue commited on
Commit
0a67f43
1 Parent(s): 990acb6

more python 3.7 compatibility changes

Browse files
Files changed (1) hide show
  1. utils.py +2 -2
utils.py CHANGED
@@ -200,13 +200,13 @@ def one(
200
 
201
 
202
  def match_one(
203
- pattern: Union[str, re.Pattern[str]],
204
  string: str,
205
  flags: int = 0
206
  ):
207
  return one(
208
  iterable=re.finditer(
209
- pattern=pattern,
210
  string=string,
211
  flags=flags
212
  )
 
200
 
201
 
202
  def match_one(
203
+ pattern: Union[str, re.Pattern], # pyright: ignore # Union[str, re.Pattern[str]],
204
  string: str,
205
  flags: int = 0
206
  ):
207
  return one(
208
  iterable=re.finditer(
209
+ pattern=pattern, # pyright: ignore
210
  string=string,
211
  flags=flags
212
  )