Skip to content
Snippets Groups Projects

Add and fix more type hints

5 files
+ 15
10
Compare changes
  • Side-by-side
  • Inline

Files

@@ -25,13 +25,13 @@
A CredentialsProvider which reads the password from the input line.
"""
from __future__ import absolute_import, unicode_literals, print_function
from __future__ import absolute_import, unicode_literals, print_function, annotations
from .interface import CredentialsProvider, CredentialsAuthenticator
from typing import Optional
import getpass
def get_authentication_provider():
def get_authentication_provider() -> CredentialsAuthenticator:
"""get_authentication_provider.
Return an authenticator which uses the input for username/password credentials.
@@ -61,8 +61,8 @@ class InputCredentialsProvider(CredentialsProvider):
def __init__(self):
super(InputCredentialsProvider, self).__init__()
self._password = None
self._username = None
self._password: Optional[str] = None
self._username: Optional[str] = None
def configure(self, **config):
"""configure.
Loading