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 abc import ABC, abstractmethod
|
||||||
from typing import List, Mapping, Union
|
from typing import Iterable, Mapping, Optional
|
||||||
|
|
||||||
from .credentials import Credentials
|
from .credentials import Credentials
|
||||||
|
|
||||||
|
|
||||||
class ICredentialCollector(ABC):
|
class ICredentialCollector(ABC):
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def collect_credentials(self, options: Union[Mapping, None]) -> List[Credentials]:
|
def collect_credentials(self, options: Optional[Mapping]) -> Iterable[Credentials]:
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue