Agent: fixup typehints in ICredentialCollector

This commit is contained in:
vakarisz 2022-02-15 16:16:43 +02:00
parent 01612c402a
commit ae9fed3c2b
1 changed files with 2 additions and 2 deletions

View File

@ -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