@@ -308,7 +308,7 @@ def format(self, word: str) -> str:
308308
309309 def matches (
310310 self , cursor_offset : int , line : str , ** kwargs : Any
311- ) -> Optional [Set ]:
311+ ) -> Optional [Set [ str ] ]:
312312 return_value = None
313313 all_matches = set ()
314314 for completer in self ._completers :
@@ -333,7 +333,7 @@ def __init__(
333333
334334 def matches (
335335 self , cursor_offset : int , line : str , ** kwargs : Any
336- ) -> Optional [Set ]:
336+ ) -> Optional [Set [ str ] ]:
337337 return self .module_gatherer .complete (cursor_offset , line )
338338
339339 def locate (self , cursor_offset : int , line : str ) -> Optional [LinePart ]:
@@ -353,7 +353,7 @@ def __init__(self, mode: AutocompleteModes = AutocompleteModes.SIMPLE):
353353
354354 def matches (
355355 self , cursor_offset : int , line : str , ** kwargs : Any
356- ) -> Optional [Set ]:
356+ ) -> Optional [Set [ str ] ]:
357357 cs = lineparts .current_string (cursor_offset , line )
358358 if cs is None :
359359 return None
@@ -389,7 +389,7 @@ def matches(
389389 * ,
390390 locals_ : Optional [Dict [str , Any ]] = None ,
391391 ** kwargs : Any ,
392- ) -> Optional [Set ]:
392+ ) -> Optional [Set [ str ] ]:
393393 r = self .locate (cursor_offset , line )
394394 if r is None :
395395 return None
@@ -474,7 +474,7 @@ def matches(
474474 * ,
475475 locals_ : Optional [Dict [str , Any ]] = None ,
476476 ** kwargs : Any ,
477- ) -> Optional [Set ]:
477+ ) -> Optional [Set [ str ] ]:
478478 if locals_ is None :
479479 return None
480480
@@ -514,7 +514,7 @@ def matches(
514514 current_block : Optional [str ] = None ,
515515 complete_magic_methods : Optional [bool ] = None ,
516516 ** kwargs : Any ,
517- ) -> Optional [Set ]:
517+ ) -> Optional [Set [ str ] ]:
518518 if (
519519 current_block is None
520520 or complete_magic_methods is None
@@ -541,7 +541,7 @@ def matches(
541541 * ,
542542 locals_ : Optional [Dict [str , Any ]] = None ,
543543 ** kwargs : Any ,
544- ) -> Optional [Set ]:
544+ ) -> Optional [Set [ str ] ]:
545545 """Compute matches when text is a simple name.
546546 Return a list of all keywords, built-in functions and names currently
547547 defined in self.namespace that match.
@@ -582,7 +582,7 @@ def matches(
582582 * ,
583583 funcprops : Optional [inspection .FuncProps ] = None ,
584584 ** kwargs : Any ,
585- ) -> Optional [Set ]:
585+ ) -> Optional [Set [ str ] ]:
586586 if funcprops is None :
587587 return None
588588
@@ -618,7 +618,7 @@ def matches(
618618 * ,
619619 locals_ : Optional [Dict [str , Any ]] = None ,
620620 ** kwargs : Any ,
621- ) -> Optional [Set ]:
621+ ) -> Optional [Set [ str ] ]:
622622 if locals_ is None :
623623 locals_ = __main__ .__dict__
624624
@@ -642,7 +642,7 @@ def matches(
642642 class MultilineJediCompletion (BaseCompletionType ): # type: ignore [no-redef]
643643 def matches (
644644 self , cursor_offset : int , line : str , ** kwargs : Any
645- ) -> Optional [Set ]:
645+ ) -> Optional [Set [ str ] ]:
646646 return None
647647
648648 def locate (self , cursor_offset : int , line : str ) -> Optional [LinePart ]:
@@ -660,7 +660,7 @@ def matches(
660660 * ,
661661 history : Optional [List [str ]] = None ,
662662 ** kwargs : Any ,
663- ) -> Optional [Set ]:
663+ ) -> Optional [Set [ str ] ]:
664664 if history is None :
665665 return None
666666 if not lineparts .current_word (cursor_offset , line ):
@@ -714,7 +714,7 @@ def matches(
714714 current_block : Optional [str ] = None ,
715715 history : Optional [List [str ]] = None ,
716716 ** kwargs : Any ,
717- ) -> Optional [Set ]:
717+ ) -> Optional [Set [ str ] ]:
718718 if current_block is None or history is None :
719719 return None
720720 if "\n " not in current_block :
0 commit comments