From 08cf646c98fed25087f35fe6998226d7488198ea Mon Sep 17 00:00:00 2001 From: Victoria Hall Date: Wed, 9 Oct 2024 10:09:03 -0500 Subject: [PATCH] using isinstance, removed extra if check --- azure/functions/decorators/blob.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure/functions/decorators/blob.py b/azure/functions/decorators/blob.py index eaad9220..e3de6f7c 100644 --- a/azure/functions/decorators/blob.py +++ b/azure/functions/decorators/blob.py @@ -17,8 +17,8 @@ def __init__(self, **kwargs): self.path = path self.connection = connection - if type(source) is BlobSource: - self.source = source.value if source else None + if isinstance(source, BlobSource): + self.source = source.value else: self.source = source super().__init__(name=name, data_type=data_type)