pyrpc-codegen 0.7.0__tar.gz → 0.7.4__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.
@@ -153,3 +153,9 @@ cython_debug/
153
153
  node_modules
154
154
  dist
155
155
 
156
+
157
+ # System design docs (local developer documentation)
158
+ system-design/
159
+
160
+ # Scripts
161
+ scripts/seed_downloads.py
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyrpc-codegen
3
- Version: 0.7.0
3
+ Version: 0.7.4
4
4
  Summary: Codegen and CLI tools for pyRPC
5
5
  Requires-Python: >=3.11
6
6
  Requires-Dist: jinja2>=3.1.0
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pyrpc-codegen"
3
- version = "0.7.0"
3
+ version = "0.7.4"
4
4
  description = "Codegen and CLI tools for pyRPC"
5
5
  requires-python = ">=3.11"
6
6
  dependencies = [
@@ -27,11 +27,11 @@ def _pytype_to_ts(type_str: str) -> str:
27
27
  m = re.match(r"<class\s+'([^']+)'>", type_str)
28
28
  if m:
29
29
  name = m.group(1)
30
+ if '.' in name:
31
+ name = name.rsplit('.', 1)[1]
30
32
  if name in _TYPE_MAP:
31
33
  return _TYPE_MAP[name]
32
- if name[0].isupper():
33
- return name
34
- return "any"
34
+ return name
35
35
 
36
36
  if type_str.startswith("typing."):
37
37
  type_str = type_str[7:]
File without changes