satori-python-core 0.17.2__tar.gz → 0.17.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: satori-python-core
3
- Version: 0.17.2
3
+ Version: 0.17.3
4
4
  Summary: Satori Protocol SDK for python, specify common part
5
5
  Home-page: https://github.com/RF-Tar-Railt/satori-python
6
6
  Author-Email: RF-Tar-Railt <rf_tar_railt@qq.com>
@@ -76,6 +76,7 @@ pip install satori-python-server
76
76
  | Satori | `pip install satori-python-adapter-satori` | satori.adapters.satori |
77
77
  | OneBot V11 | `pip install satori-python-adapter-onebot11` | satori.adapters.onebot11.forward, satori.adapters.onebot11.reverse |
78
78
  | Console | `pip install satori-python-adapter-console` | satori.adapters.console |
79
+ | Milky | `pip install satori-python-adapter-milky` | satori.adapters.milky.main, satori.adapters.milky.webhook |
79
80
 
80
81
  ### 社区适配器
81
82
 
@@ -52,6 +52,7 @@ pip install satori-python-server
52
52
  | Satori | `pip install satori-python-adapter-satori` | satori.adapters.satori |
53
53
  | OneBot V11 | `pip install satori-python-adapter-onebot11` | satori.adapters.onebot11.forward, satori.adapters.onebot11.reverse |
54
54
  | Console | `pip install satori-python-adapter-console` | satori.adapters.console |
55
+ | Milky | `pip install satori-python-adapter-milky` | satori.adapters.milky.main, satori.adapters.milky.webhook |
55
56
 
56
57
  ### 社区适配器
57
58
 
@@ -23,7 +23,7 @@ classifiers = [
23
23
  "Programming Language :: Python :: 3.12",
24
24
  "Operating System :: OS Independent",
25
25
  ]
26
- version = "0.17.2"
26
+ version = "0.17.3"
27
27
 
28
28
  [project.license]
29
29
  text = "MIT"
@@ -67,7 +67,7 @@ excludes = [
67
67
  composite = [
68
68
  "isort ./src/ ./example/",
69
69
  "black ./src/ ./example/",
70
- "ruff check ./src/ ./example/",
70
+ "ruff check",
71
71
  ]
72
72
 
73
73
  [tool.pdm.version]
@@ -91,7 +91,9 @@ extra_standard_library = [
91
91
  line-length = 120
92
92
  target-version = "py310"
93
93
  exclude = [
94
- "exam.py",
94
+ "exam_qps.py",
95
+ "exam1.py",
96
+ "exam2.py",
95
97
  ]
96
98
 
97
99
  [tool.ruff.lint]
@@ -109,7 +111,7 @@ ignore = [
109
111
  "F403",
110
112
  "F405",
111
113
  "C901",
112
- "UP038",
114
+ "T201",
113
115
  ]
114
116
 
115
117
  [tool.pyright]
@@ -42,4 +42,4 @@ from .model import Role as Role
42
42
  from .model import Upload as Upload
43
43
  from .model import User as User
44
44
 
45
- __version__ = "0.17.2"
45
+ __version__ = "0.17.3"
@@ -306,7 +306,7 @@ def parse_tokens(tokens: list[str | Token], context: dict | None = None) -> list
306
306
  while mat := attr_pat.search(token.extra):
307
307
  key = mat.group(1)
308
308
  groupdict = mat.groupdict()
309
- v2 = groupdict.get("value2", groupdict.get("value1"))
309
+ v2 = groupdict.get("value2") or groupdict.get("value1")
310
310
  curly = groupdict.get("curly")
311
311
  if curly and context is not None:
312
312
  attrs[key] = interpolate(curly, context)