Skip to content

Commit ac569e9

Browse files
committed
fix: retry ci
1 parent 729a078 commit ac569e9

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ results = client.search.query({"query": "bitcoin"})
4141
# Series and sports
4242
series = client.series.list()
4343
sports = client.sports.list()
44-
45-
client.close()
4644
```
4745

4846
### Authenticated Endpoints (Trading)

polymarket_us/__init__.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,16 @@
2828
"WebSocketError",
2929
]
3030

31-
__version__ = "0.1.0"
31+
try:
32+
from importlib.metadata import version
33+
34+
__version__ = version("polymarket-us")
35+
except ImportError:
36+
# Fallback for Python < 3.8
37+
try:
38+
from importlib_metadata import version
39+
40+
__version__ = version("polymarket-us")
41+
except ImportError:
42+
# Fallback if package not installed
43+
__version__ = "0.1.0"

0 commit comments

Comments
 (0)