Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 9a33d86

Browse files
committed
Merge branch 'main' into csm_1_data_model
2 parents f1be54a + 663c01f commit 9a33d86

97 files changed

Lines changed: 3935 additions & 847 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.cross_sync/transformers.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,18 +71,19 @@ def visit_FunctionDef(self, node):
7171
Replace function docstrings
7272
"""
7373
docstring = ast.get_docstring(node)
74-
if docstring and isinstance(node.body[0], ast.Expr) and isinstance(
75-
node.body[0].value, ast.Str
76-
):
74+
if docstring and isinstance(node.body[0], ast.Expr) \
75+
and isinstance(node.body[0].value, ast.Constant) \
76+
and isinstance(node.body[0].value.value, str) \
77+
:
7778
for key_word, replacement in self.replacements.items():
7879
docstring = docstring.replace(key_word, replacement)
79-
node.body[0].value.s = docstring
80+
node.body[0].value.value = docstring
8081
return self.generic_visit(node)
8182

8283
def visit_Constant(self, node):
8384
"""Replace string type annotations"""
8485
try:
85-
node.s = self.replacements.get(node.s, node.s)
86+
node.value = self.replacements.get(node.value, node.value)
8687
except TypeError:
8788
# ignore unhashable types (e.g. list)
8889
pass
@@ -264,7 +265,7 @@ def get_output_path(self, node):
264265
for target in n.targets:
265266
if isinstance(target, ast.Name) and target.id == self.FILE_ANNOTATION:
266267
# return the output path
267-
return n.value.s.replace(".", "/") + ".py"
268+
return n.value.value.replace(".", "/") + ".py"
268269

269270
def visit_Module(self, node):
270271
# look for __CROSS_SYNC_OUTPUT__ Assign statement

.github/.OwlBot.lock.yaml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/.OwlBot.yaml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/auto-approve.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/release-please.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/release-trigger.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/sync-repo-settings.yaml

Lines changed: 0 additions & 48 deletions
This file was deleted.

.github/workflows/conformance.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
strategy:
2626
matrix:
2727
test-version: [ "v0.0.4" ]
28-
py-version: [ 3.8 ]
28+
py-version: [ 3.13 ]
2929
client-type: [ "async", "sync"]
3030
# None of the clients currently support reverse scans, execute query plan refresh, retry info, or routing cookie
3131
include:

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Setup Python
1313
uses: actions/setup-python@v5
1414
with:
15-
python-version: "3.8"
15+
python-version: "3.13"
1616
- name: Install nox
1717
run: |
1818
python -m pip install --upgrade setuptools pip wheel

.github/workflows/mypy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Setup Python
1313
uses: actions/setup-python@v5
1414
with:
15-
python-version: "3.8"
15+
python-version: "3.13"
1616
- name: Install nox
1717
run: |
1818
python -m pip install --upgrade setuptools pip wheel

0 commit comments

Comments
 (0)