forked from p34709852/monkey
Agent: fixup typehints in ICredentialCollector
This commit is contained in:
parent
01612c402a
commit
ae9fed3c2b
|
@ -1,10 +1,10 @@
|
|||
from abc import ABC, abstractmethod
|
||||
from typing import List, Mapping, Union
|
||||
from typing import Iterable, Mapping, Optional
|
||||
|
||||
from .credentials import Credentials
|
||||
|
||||
|
||||
class ICredentialCollector(ABC):
|
||||
@abstractmethod
|
||||
def collect_credentials(self, options: Union[Mapping, None]) -> List[Credentials]:
|
||||
def collect_credentials(self, options: Optional[Mapping]) -> Iterable[Credentials]:
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue