Skip to content

Commit a93084d

Browse files
authored
raise AttributeError for azure.core.pipeline.transport.__bases__ (Azure#22470)
* raise AttributeError for azure.core.pipeline.transport.__bases__ * update changelog
1 parent 6807eb4 commit a93084d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

sdk/core/azure-core/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
### Bugs Fixed
1010

11+
- raise AttributeError when calling azure.core.pipeline.transport.\_\_bases__ #22469
12+
1113
### Other Changes
1214

1315
## 1.21.1 (2021-12-06)

sdk/core/azure-core/azure/core/pipeline/transport/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ def __getattr__(name):
8787
return TrioRequestsTransportResponse
8888
except ImportError:
8989
raise ImportError("trio package is not installed")
90+
if name == '__bases__':
91+
raise AttributeError("module 'azure.core.pipeline.transport' has no attribute '__bases__'")
9092
return name
9193

9294
else:

0 commit comments

Comments
 (0)