Skip to content

Commit

Permalink
Fix compatibility with old Python versions and release 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Oreoxmt committed Dec 4, 2022
1 parent b32e742 commit 201b382
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "tidbcloudy"
version = "1.0.1"
version = "1.0.2"
description = "Python SDK for TiDB Cloud"
readme = "README.md"
authors = ["Aolin <[email protected]>"]
Expand Down
3 changes: 2 additions & 1 deletion tidbcloudy/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ class TiDBCloudyBase:
def __init_subclass__(cls):
cls._keys = {}
for key in cls.__slots__:
key = key.removeprefix("_")
if key.startswith("_"):
key = key[1:]
cls._keys[key] = getattr(cls, key)

def __init__(self, **kwargs):
Expand Down

0 comments on commit 201b382

Please sign in to comment.