typing: Annotate keystoneauth1.loading._utils

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I0de78bc9b30f6e1bbe055a2dc01f8d3608c45179
This commit is contained in:
Stephen Finucane
2024-08-15 14:20:03 +01:00
parent 3b3b98d479
commit d8b89fd888
2 changed files with 9 additions and 1 deletions

View File

@@ -10,11 +10,16 @@
# License for the specific language governing permissions and limitations
# under the License.
import typing as ty
if ty.TYPE_CHECKING:
from oslo_config import cfg as _cfg
cfg = None
_NOT_FOUND = object()
def get_oslo_config():
def get_oslo_config() -> '_cfg':
"""Runtime load the oslo.config object.
In performance optimization of openstackclient it was determined that even

View File

@@ -176,3 +176,6 @@ disallow_untyped_defs = true
[mypy-keystoneauth1.loading.session]
disallow_untyped_defs = true
[mypy-keystoneauth1.loading._utils]
disallow_untyped_defs = true