Skip to content

Commit fd4e179

Browse files
committed
Add hasattr check
1 parent a176b76 commit fd4e179

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

example/example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import asyncio
22
import os
3-
from onepassword import Client, Item, ItemField, ItemSection
3+
from onepassword import *
44

55

66
async def main():

src/onepassword/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@
1414
"DEFAULT_INTEGRATION_VERSION",
1515
]
1616

17-
__all__ += types.__all__
17+
if hasattr(types, "__all__"):
18+
__all__ += types.__all__

0 commit comments

Comments
 (0)