Start supporting type info

This is super basic, but it's a starting point to us being able to
start adding typing info.

Adding it with python2 syntax for now, since we haven't dropped py2
yet.

Change-Id: I4f9b95b02d43c81acb60d224584d60331f5a7784
This commit is contained in:
Monty Taylor 2019-10-03 11:59:36 +02:00
parent c9fba05bf6
commit 7fcfeeb08f
2 changed files with 5 additions and 2 deletions

View File

@ -24,10 +24,13 @@ __all__ = [
def connect(
cloud=None,
app_name=None, app_version=None,
app_name=None, # type: Optional[str]
app_version=None, # type: Optional[str]
options=None,
load_yaml_config=True, load_envvars=True,
load_yaml_config=True, # type: bool
load_envvars=True, # type: bool
**kwargs):
# type: (...) -> openstack.connection.Connection
"""Create a :class:`~openstack.connection.Connection`
:param string cloud:

0
openstack/py.typed Normal file
View File