From 4f0844b92eeedcd1524a4ddc5e4cda938469179b Mon Sep 17 00:00:00 2001 From: hippi345 <13539685+hippi345@users.noreply.github.com> Date: Sat, 31 Oct 2026 01:12:13 -0400 Subject: [PATCH] Annotate BlobServiceLike.get_container_client return type --- get_blobs_of_file_type/scanner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/get_blobs_of_file_type/scanner.py b/get_blobs_of_file_type/scanner.py index a48ff5f..a93992a 100644 --- a/get_blobs_of_file_type/scanner.py +++ b/get_blobs_of_file_type/scanner.py @@ -5,7 +5,7 @@ from dataclasses import dataclass from typing import Protocol -from azure.storage.blob import BlobServiceClient +from azure.storage.blob import BlobServiceClient, ContainerClient @dataclass(frozen=True) @@ -31,7 +31,7 @@ def total_size_bytes(self) -> int: class BlobServiceLike(Protocol): """Subset of BlobServiceClient used by the scanner (for testing).""" - def get_container_client(self, container: str): ... + def get_container_client(self, container: str) -> ContainerClient: ... def create_blob_service_client(account_name: str, account_key: str) -> BlobServiceClient: