@@ -308,7 +308,7 @@ def format(self, word: str) -> str:
308
308
309
309
def matches (
310
310
self , cursor_offset : int , line : str , ** kwargs : Any
311
- ) -> Optional [Set ]:
311
+ ) -> Optional [Set [ str ] ]:
312
312
return_value = None
313
313
all_matches = set ()
314
314
for completer in self ._completers :
@@ -333,7 +333,7 @@ def __init__(
333
333
334
334
def matches (
335
335
self , cursor_offset : int , line : str , ** kwargs : Any
336
- ) -> Optional [Set ]:
336
+ ) -> Optional [Set [ str ] ]:
337
337
return self .module_gatherer .complete (cursor_offset , line )
338
338
339
339
def locate (self , cursor_offset : int , line : str ) -> Optional [LinePart ]:
@@ -353,7 +353,7 @@ def __init__(self, mode: AutocompleteModes = AutocompleteModes.SIMPLE):
353
353
354
354
def matches (
355
355
self , cursor_offset : int , line : str , ** kwargs : Any
356
- ) -> Optional [Set ]:
356
+ ) -> Optional [Set [ str ] ]:
357
357
cs = lineparts .current_string (cursor_offset , line )
358
358
if cs is None :
359
359
return None
@@ -389,7 +389,7 @@ def matches(
389
389
* ,
390
390
locals_ : Optional [Dict [str , Any ]] = None ,
391
391
** kwargs : Any ,
392
- ) -> Optional [Set ]:
392
+ ) -> Optional [Set [ str ] ]:
393
393
r = self .locate (cursor_offset , line )
394
394
if r is None :
395
395
return None
@@ -474,7 +474,7 @@ def matches(
474
474
* ,
475
475
locals_ : Optional [Dict [str , Any ]] = None ,
476
476
** kwargs : Any ,
477
- ) -> Optional [Set ]:
477
+ ) -> Optional [Set [ str ] ]:
478
478
if locals_ is None :
479
479
return None
480
480
@@ -514,7 +514,7 @@ def matches(
514
514
current_block : Optional [str ] = None ,
515
515
complete_magic_methods : Optional [bool ] = None ,
516
516
** kwargs : Any ,
517
- ) -> Optional [Set ]:
517
+ ) -> Optional [Set [ str ] ]:
518
518
if (
519
519
current_block is None
520
520
or complete_magic_methods is None
@@ -541,7 +541,7 @@ def matches(
541
541
* ,
542
542
locals_ : Optional [Dict [str , Any ]] = None ,
543
543
** kwargs : Any ,
544
- ) -> Optional [Set ]:
544
+ ) -> Optional [Set [ str ] ]:
545
545
"""Compute matches when text is a simple name.
546
546
Return a list of all keywords, built-in functions and names currently
547
547
defined in self.namespace that match.
@@ -582,7 +582,7 @@ def matches(
582
582
* ,
583
583
funcprops : Optional [inspection .FuncProps ] = None ,
584
584
** kwargs : Any ,
585
- ) -> Optional [Set ]:
585
+ ) -> Optional [Set [ str ] ]:
586
586
if funcprops is None :
587
587
return None
588
588
@@ -618,7 +618,7 @@ def matches(
618
618
* ,
619
619
locals_ : Optional [Dict [str , Any ]] = None ,
620
620
** kwargs : Any ,
621
- ) -> Optional [Set ]:
621
+ ) -> Optional [Set [ str ] ]:
622
622
if locals_ is None :
623
623
locals_ = __main__ .__dict__
624
624
@@ -642,7 +642,7 @@ def matches(
642
642
class MultilineJediCompletion (BaseCompletionType ): # type: ignore [no-redef]
643
643
def matches (
644
644
self , cursor_offset : int , line : str , ** kwargs : Any
645
- ) -> Optional [Set ]:
645
+ ) -> Optional [Set [ str ] ]:
646
646
return None
647
647
648
648
def locate (self , cursor_offset : int , line : str ) -> Optional [LinePart ]:
@@ -660,7 +660,7 @@ def matches(
660
660
* ,
661
661
history : Optional [List [str ]] = None ,
662
662
** kwargs : Any ,
663
- ) -> Optional [Set ]:
663
+ ) -> Optional [Set [ str ] ]:
664
664
if history is None :
665
665
return None
666
666
if not lineparts .current_word (cursor_offset , line ):
@@ -714,7 +714,7 @@ def matches(
714
714
current_block : Optional [str ] = None ,
715
715
history : Optional [List [str ]] = None ,
716
716
** kwargs : Any ,
717
- ) -> Optional [Set ]:
717
+ ) -> Optional [Set [ str ] ]:
718
718
if current_block is None or history is None :
719
719
return None
720
720
if "\n " not in current_block :
0 commit comments